x
This commit is contained in:
1 parent
4454b860c1
commit
c90799ef17
3 files changed
+12
-3
No files matched your search
@@ -43,7 +43,7 @@ export default function ProductCard({ product, enableQuickShop = false, category
|
||||
const { addToCart } = useCartStore();
|
||||
const { i18n, t } = useTranslation();
|
||||
const isWished = isInWishlist(product.id);
|
||||
const [selectedVariant, setSelectedVariant] = useState(product.variants?.[0] || null);
|
||||
const [selectedVariant, _setSelectedVariant] = useState(product.variants?.[0] || null);
|
||||
const displayName = resolveStr(product.name, i18n.language) || (product.brand ? product.brand.name : '');
|
||||
const displayCategoryName = categoryNameOverride || resolveStr(product.category.name, i18n.language);
|
||||
|
||||
|
||||
Reference in new issue
Block a user