From 8b8c57b24ebdfe9a398333d0c1ca820f5de233e6 Mon Sep 17 00:00:00 2001 From: "Brian.Jiang2021" Date: Mon, 19 Feb 2024 09:44:35 +0800 Subject: [PATCH] fix: shopping list number update --- .../shoppingListDetails/components/ShoppingDetailTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx b/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx index 9490a607..83d30835 100644 --- a/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx +++ b/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx @@ -315,7 +315,7 @@ function ShoppingDetailTable( const itemData: CustomFieldItems = { variantId: currentNode?.variantId, - quantity: currentNode?.quantity, + quantity: currentNode?.quantity ? +currentNode.quantity : 0, optionList: optionsList || [], productNote: notes, }