fix(frontend): remove duplicate getText identifier declaration in FeaturedProducts.tsx
Some checks failed
Deploy Canina / deploy (push) Failing after 29s

This commit is contained in:
parsa aghaei 2026-08-08 18:48:21 +03:30
parent fa688e2f8b
commit e3ff345608

View File

@ -32,7 +32,6 @@ function ProductCard({ product }: { product: Product }) {
return { type: "neutral", text: `مناسب برای ${activePet.name}` };
}, [product, activePet]);
const getText = useSettingsStore((state) => state.getText);
const isCatalogOnly = getText('CATALOG_ONLY_MODE', 'false') === 'true';
const showPrices = !isCatalogOnly || getText('CATALOG_SHOW_PRICES', 'true') === 'true';
const allowCart = !isCatalogOnly || getText('CATALOG_ALLOW_CART', 'false') === 'true';