1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-14 21:01:23 +00:00

Change the language properly for the products

This commit is contained in:
Luis Alvarez
2020-10-25 19:12:43 -05:00
parent 0657b882cd
commit 4862dc6bbd

@@ -68,8 +68,7 @@ export default function Home({
(i) => bestSellingProducts[i] ?? products.shift() (i) => bestSellingProducts[i] ?? products.shift()
).filter(nonNullable), ).filter(nonNullable),
} }
// Props from getStaticProps won't change }, [newestProducts, featuredProducts, bestSellingProducts])
}, [])
return ( return (
<div> <div>