diff --git a/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx b/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx index d80187cf..a801c5ef 100644 --- a/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx +++ b/apps/storefront/src/pages/shoppingListDetails/components/ShoppingDetailTable.tsx @@ -229,7 +229,7 @@ const ShoppingDetailTable = (props: ShoppingDetailTableProps, ref: Ref) itemData: { variantId: products[0].variantId, quantity: products[0].quantity, - optionList: products[0].optionList || [], + optionList: products[0].newSelectOptionList || [], }, } diff --git a/apps/storefront/src/pages/shoppingListDetails/shared/config.ts b/apps/storefront/src/pages/shoppingListDetails/shared/config.ts index 5428f737..7d929ad0 100644 --- a/apps/storefront/src/pages/shoppingListDetails/shared/config.ts +++ b/apps/storefront/src/pages/shoppingListDetails/shared/config.ts @@ -380,12 +380,12 @@ export const getOptionRequestData = (formFields: CustomFieldItems[], requestData } if (fieldType === 'number') { - requestData[decodeName] = parseFloat(fieldValue) + requestData[decodeName] = parseFloat(fieldValue) || '' return } if (['radio', 'dropdown', 'rectangle', 'swatch', 'productRadio'].includes(fieldType)) { - requestData[decodeName] = parseInt(fieldValue, 10) + requestData[decodeName] = parseInt(fieldValue, 10) || '' return }