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

This commit is contained in:
Frane Polić authored and GitHub committed 2024-08-30 09:31:28 +00:00
1 parent e360a495b7
commit 48d4a97ad2
3 files changed
+3 -3

No files matched your search

@@ -788,7 +788,7 @@ export const ClaimCreateForm = ({
const customPrice = const customPrice =
customShippingAmount === "" customShippingAmount === ""
? null ? null
: parseInt(customShippingAmount) : parseFloat(customShippingAmount)
if (actionId) { if (actionId) {
updateInboundShipping( updateInboundShipping(
@@ -319,7 +319,7 @@ export const ExchangeCreateForm = ({
const customPrice = const customPrice =
customShippingAmount === "" customShippingAmount === ""
? null ? null
: parseInt(customShippingAmount) : parseFloat(customShippingAmount)
if (actionId) { if (actionId) {
updateInboundShipping( updateInboundShipping(
@@ -660,7 +660,7 @@ export const ReturnCreateForm = ({
} }
code={order.currency_code} code={order.currency_code}
onValueChange={(value) => onValueChange={(value) =>
setCustomShippingAmount(value ? parseInt(value) : "") setCustomShippingAmount(value ? parseFloat(value) : "")
} }
value={customShippingAmount} value={customShippingAmount}
disabled={showPlaceholder} disabled={showPlaceholder}