From 4862dc6bbd21955f62d582a9a299088225123b2b Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Sun, 25 Oct 2020 19:12:43 -0500 Subject: [PATCH] Change the language properly for the products --- pages/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 3476f2cc7..2065bacc9 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -68,8 +68,7 @@ export default function Home({ (i) => bestSellingProducts[i] ?? products.shift() ).filter(nonNullable), } - // Props from getStaticProps won't change - }, []) + }, [newestProducts, featuredProducts, bestSellingProducts]) return (