fix(dashboard): rma shipping floats (#8892)
This commit is contained in:
@@ -788,7 +788,7 @@ export const ClaimCreateForm = ({
|
||||
const customPrice =
|
||||
customShippingAmount === ""
|
||||
? null
|
||||
: parseInt(customShippingAmount)
|
||||
: parseFloat(customShippingAmount)
|
||||
|
||||
if (actionId) {
|
||||
updateInboundShipping(
|
||||
|
||||
@@ -319,7 +319,7 @@ export const ExchangeCreateForm = ({
|
||||
const customPrice =
|
||||
customShippingAmount === ""
|
||||
? null
|
||||
: parseInt(customShippingAmount)
|
||||
: parseFloat(customShippingAmount)
|
||||
|
||||
if (actionId) {
|
||||
updateInboundShipping(
|
||||
|
||||
@@ -660,7 +660,7 @@ export const ReturnCreateForm = ({
|
||||
}
|
||||
code={order.currency_code}
|
||||
onValueChange={(value) =>
|
||||
setCustomShippingAmount(value ? parseInt(value) : "")
|
||||
setCustomShippingAmount(value ? parseFloat(value) : "")
|
||||
}
|
||||
value={customShippingAmount}
|
||||
disabled={showPlaceholder}
|
||||
|
||||
Reference in New Issue
Block a user