Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use parseFloat in minAmountSpent
Krzysztof Bialoglowicz570830b1c620
diff --git a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsxindex 723e89b482..8d1062295a 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherCreate.tsx@@ -65,7 +65,7 @@ export const VoucherDetails: React.StatelessComponent = () => {endDate: formData.hasEndDate? joinDateTime(formData.endDate, formData.endTime): null,- minAmountSpent: parseInt(formData.minAmountSpent, 10),+ minAmountSpent: parseFloat(formData.minAmountSpent),startDate: joinDateTime(formData.startDate,formData.startTimediff --git a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsxindex 925fdb1a00..3ecee26235 100644--- a/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx+++ b/saleor/static/dashboard-next/discounts/views/VoucherDetails.tsx@@ -333,9 +333,8 @@ export const VoucherDetails: React.StatelessComponent<VoucherDetailsProps> = ({formData.endTime): null,- minAmountSpent: parseInt(- formData.minAmountSpent,- 10+ minAmountSpent: parseFloat(+ formData.minAmountSpent),startDate: joinDateTime(formData.startDate,