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);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function AccordionSection({ payload }: AccordionSectionProps) {
|
||||
{title}
|
||||
</h2>
|
||||
)}
|
||||
{payload.categories.map((category, catIndex) => (
|
||||
{(payload.categories ?? []).map((category, catIndex) => (
|
||||
<div key={catIndex} className="mb-12 last:mb-0">
|
||||
<h3 className="mb-6 flex items-center gap-3 font-serif text-2xl">
|
||||
{category.icon && (
|
||||
|
||||
Reference in new issue
Block a user