chore: fix comming soon

This commit is contained in:
2026-03-07 18:42:18 +01:00
parent ab7d8929a8
commit 91ad46c0f8
4 changed files with 315 additions and 131 deletions
+7 -1
View File
@@ -94,9 +94,15 @@ export default function ProductsScreen() {
}, [selectedCategory]);
useEffect(() => {
const catObj = categories.find((c) => c.name === selectedCategory);
if (catObj?.is_coming_soon) {
setLoading(false);
setProducts([]);
return;
}
setLoading(true);
fetchProducts();
}, [fetchProducts]);
}, [selectedCategory, categories, fetchProducts]);
useEffect(() => {
if (carouselRef.current && products.length > 0) {