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:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user