From df0adfc8c6c664265a9cb2cc491e7dc84efb229e Mon Sep 17 00:00:00 2001 From: DoneWithWork <72771758+DoneWithWork@users.noreply.github.com> Date: Fri, 5 Jan 2024 22:03:02 +0800 Subject: [PATCH] Update CartItem.tsx {quantity > 1 ...} ----> {quantity >0 ...} If user had only one item in cart, the span would not show up. --- src/components/CartItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CartItem.tsx b/src/components/CartItem.tsx index 94c1fd9..582b3d6 100644 --- a/src/components/CartItem.tsx +++ b/src/components/CartItem.tsx @@ -22,7 +22,7 @@ export function CartItem({ id, quantity }: CartItemProps) {
{item.name}{" "} - {quantity > 1 && ( + {quantity > 0 && ( x{quantity}