fix(frontend): remove duplicate getText identifier declaration in FeaturedProducts.tsx
Some checks failed
Deploy Canina / deploy (push) Failing after 29s
Some checks failed
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
parent
fa688e2f8b
commit
e3ff345608
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user