@@ -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}
|
value={field.value.value}
|
||||||
onValueChange={(_value, _name, values) =>
|
onValueChange={(_value, _name, values) =>
|
||||||
onChange({
|
onChange({
|
||||||
value: values?.value,
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
autoFocus
|
autoFocus
|
||||||
@@ -353,8 +353,8 @@ export const OrderBalanceSettlementForm = ({
|
|||||||
value={field.value.value}
|
value={field.value.value}
|
||||||
onValueChange={(_value, _name, values) => {
|
onValueChange={(_value, _name, values) => {
|
||||||
onChange({
|
onChange({
|
||||||
value: values?.value,
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
autoFocus
|
autoFocus
|
||||||
|
|||||||
+4
-4
@@ -916,8 +916,8 @@ export const ClaimCreateForm = ({
|
|||||||
code={order.currency_code}
|
code={order.currency_code}
|
||||||
onValueChange={(value, _name, values) => {
|
onValueChange={(value, _name, values) => {
|
||||||
setCustomInboundShippingAmount({
|
setCustomInboundShippingAmount({
|
||||||
value: values?.value || "",
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
value={customInboundShippingAmount.value}
|
value={customInboundShippingAmount.value}
|
||||||
@@ -989,8 +989,8 @@ export const ClaimCreateForm = ({
|
|||||||
code={order.currency_code}
|
code={order.currency_code}
|
||||||
onValueChange={(value, _name, values) => {
|
onValueChange={(value, _name, values) => {
|
||||||
setCustomOutboundShippingAmount({
|
setCustomOutboundShippingAmount({
|
||||||
value: values?.value || "",
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
value={customOutboundShippingAmount.value}
|
value={customOutboundShippingAmount.value}
|
||||||
|
|||||||
+4
-4
@@ -397,8 +397,8 @@ export const ExchangeCreateForm = ({
|
|||||||
code={order.currency_code}
|
code={order.currency_code}
|
||||||
onValueChange={(value, name, values) =>
|
onValueChange={(value, name, values) =>
|
||||||
setCustomInboundShippingAmount({
|
setCustomInboundShippingAmount({
|
||||||
value: values?.value || "",
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
value={customInboundShippingAmount.value}
|
value={customInboundShippingAmount.value}
|
||||||
@@ -470,8 +470,8 @@ export const ExchangeCreateForm = ({
|
|||||||
code={order.currency_code}
|
code={order.currency_code}
|
||||||
onValueChange={(value, name, values) =>
|
onValueChange={(value, name, values) =>
|
||||||
setCustomOutboundShippingAmount({
|
setCustomOutboundShippingAmount({
|
||||||
value: values?.value || "",
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
value={customOutboundShippingAmount.value}
|
value={customOutboundShippingAmount.value}
|
||||||
|
|||||||
+2
-2
@@ -191,8 +191,8 @@ export const CreateRefundForm = ({ order }: CreateRefundFormProps) => {
|
|||||||
value={field.value.value}
|
value={field.value.value}
|
||||||
onValueChange={(_value, _name, values) =>
|
onValueChange={(_value, _name, values) =>
|
||||||
onChange({
|
onChange({
|
||||||
value: values?.value,
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
autoFocus
|
autoFocus
|
||||||
|
|||||||
+2
-2
@@ -689,8 +689,8 @@ export const ReturnCreateForm = ({
|
|||||||
code={order.currency_code}
|
code={order.currency_code}
|
||||||
onValueChange={(value, name, values) =>
|
onValueChange={(value, name, values) =>
|
||||||
setCustomShippingAmount({
|
setCustomShippingAmount({
|
||||||
value: values?.value || "",
|
value: values?.value ?? "",
|
||||||
float: values?.float || null,
|
float: values?.float ?? null,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
value={customShippingAmount.value}
|
value={customShippingAmount.value}
|
||||||
|
|||||||
Reference in New Issue
Block a user