@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/dashboard": patch
|
||||
---
|
||||
|
||||
fix(dashboard): zero in float currency inputs
|
||||
+4
-4
@@ -295,8 +295,8 @@ export const OrderBalanceSettlementForm = ({
|
||||
value={field.value.value}
|
||||
onValueChange={(_value, _name, values) =>
|
||||
onChange({
|
||||
value: values?.value,
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}
|
||||
autoFocus
|
||||
@@ -353,8 +353,8 @@ export const OrderBalanceSettlementForm = ({
|
||||
value={field.value.value}
|
||||
onValueChange={(_value, _name, values) => {
|
||||
onChange({
|
||||
value: values?.value,
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}}
|
||||
autoFocus
|
||||
|
||||
+4
-4
@@ -916,8 +916,8 @@ export const ClaimCreateForm = ({
|
||||
code={order.currency_code}
|
||||
onValueChange={(value, _name, values) => {
|
||||
setCustomInboundShippingAmount({
|
||||
value: values?.value || "",
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}}
|
||||
value={customInboundShippingAmount.value}
|
||||
@@ -989,8 +989,8 @@ export const ClaimCreateForm = ({
|
||||
code={order.currency_code}
|
||||
onValueChange={(value, _name, values) => {
|
||||
setCustomOutboundShippingAmount({
|
||||
value: values?.value || "",
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}}
|
||||
value={customOutboundShippingAmount.value}
|
||||
|
||||
+4
-4
@@ -397,8 +397,8 @@ export const ExchangeCreateForm = ({
|
||||
code={order.currency_code}
|
||||
onValueChange={(value, name, values) =>
|
||||
setCustomInboundShippingAmount({
|
||||
value: values?.value || "",
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}
|
||||
value={customInboundShippingAmount.value}
|
||||
@@ -470,8 +470,8 @@ export const ExchangeCreateForm = ({
|
||||
code={order.currency_code}
|
||||
onValueChange={(value, name, values) =>
|
||||
setCustomOutboundShippingAmount({
|
||||
value: values?.value || "",
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}
|
||||
value={customOutboundShippingAmount.value}
|
||||
|
||||
+2
-2
@@ -191,8 +191,8 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
|
||||
value={field.value.value}
|
||||
onValueChange={(_value, _name, values) =>
|
||||
onChange({
|
||||
value: values?.value,
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}
|
||||
autoFocus
|
||||
|
||||
+2
-2
@@ -689,8 +689,8 @@ export const ReturnCreateForm = ({
|
||||
code={order.currency_code}
|
||||
onValueChange={(value, name, values) =>
|
||||
setCustomShippingAmount({
|
||||
value: values?.value || "",
|
||||
float: values?.float || null,
|
||||
value: values?.value ?? "",
|
||||
float: values?.float ?? null,
|
||||
})
|
||||
}
|
||||
value={customShippingAmount.value}
|
||||
|
||||
Reference in New Issue
Block a user