Skip to content

Commit

Permalink
feat: update quote issues
Browse files Browse the repository at this point in the history
  • Loading branch information
b3aton committed Feb 3, 2023
1 parent a0ef3ca commit e6565ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const ShoppingDetailTable = (props: ShoppingDetailTableProps, ref: Ref<unknown>)
itemData: {
variantId: products[0].variantId,
quantity: products[0].quantity,
optionList: products[0].optionList || [],
optionList: products[0].newSelectOptionList || [],
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit e6565ce

Please sign in to comment.