diff --git a/.changeset/seven-forks-knock.md b/.changeset/seven-forks-knock.md new file mode 100644 index 0000000000..a2fb094266 --- /dev/null +++ b/.changeset/seven-forks-knock.md @@ -0,0 +1,5 @@ +--- +"@medusajs/admin-ui": patch +--- + +fix(admin-ui): Resolves an issue where decimal numbers would be stripped when the locale uses commas as the decimal separator diff --git a/packages/admin-ui/ui/src/domain/pricing/forms/price-list-product-prices-form/price-list-product-prices-form.tsx b/packages/admin-ui/ui/src/domain/pricing/forms/price-list-product-prices-form/price-list-product-prices-form.tsx index 845b3b2359..b9c735ee83 100644 --- a/packages/admin-ui/ui/src/domain/pricing/forms/price-list-product-prices-form/price-list-product-prices-form.tsx +++ b/packages/admin-ui/ui/src/domain/pricing/forms/price-list-product-prices-form/price-list-product-prices-form.tsx @@ -1830,6 +1830,7 @@ const Cell = React.forwardRef( ? formatValue({ value: strippedValue.replace(/,/g, "."), // If the current locale uses commas as decimal separators, then we need to replace them with dots. decimalScale: decimalScale ?? 0, + decimalSeparator: ".", disableGroupSeparators: true, }) : ""