From 1742ae8ea617755b2ac553fd8cfa073dbbfcba32 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Sun, 10 Jan 2021 16:25:25 -0300 Subject: [PATCH] Normalizing more operations --- components/product/ProductCard/ProductCard.tsx | 6 +++--- framework/types.d.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 47c000032..d60f3e937 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -25,7 +25,7 @@ const ProductCard: FC = ({ className, product, variant, imgProps }) => { {product.name} - {product.images[0] && ( + {product.images?[0] && ( {product.name} = ({ className, product, variant, imgProps }) => {
- {product.images[0] && ( + {product.images?[0] && (