fix(dashboard): rma shipping floats (#8892)

This commit is contained in:
Frane Polić
2024-08-30 11:31:28 +02:00
committed by GitHub
parent e360a495b7
commit 48d4a97ad2
3 changed files with 3 additions and 3 deletions

View File

@@ -788,7 +788,7 @@ export const ClaimCreateForm = ({
const customPrice =
customShippingAmount === ""
? null
: parseInt(customShippingAmount)
: parseFloat(customShippingAmount)
if (actionId) {
updateInboundShipping(

View File

@@ -319,7 +319,7 @@ export const ExchangeCreateForm = ({
const customPrice =
customShippingAmount === ""
? null
: parseInt(customShippingAmount)
: parseFloat(customShippingAmount)
if (actionId) {
updateInboundShipping(

View File

@@ -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}