From 746c80c564b0e8930270ac7499fa2bef99752df5 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Wed, 20 Sep 2023 17:22:58 +0200 Subject: [PATCH] fix(server): tax rate could be zero. --- .../TaxRates/dialogs/TaxRateFormDialog/TaxRateForm.schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/containers/TaxRates/dialogs/TaxRateFormDialog/TaxRateForm.schema.ts b/packages/webapp/src/containers/TaxRates/dialogs/TaxRateFormDialog/TaxRateForm.schema.ts index 020346ced..5d182e7c8 100644 --- a/packages/webapp/src/containers/TaxRates/dialogs/TaxRateFormDialog/TaxRateForm.schema.ts +++ b/packages/webapp/src/containers/TaxRates/dialogs/TaxRateFormDialog/TaxRateForm.schema.ts @@ -8,7 +8,7 @@ const getSchema = () => active: Yup.boolean().optional().label('Active'), describtion: Yup.string().optional().label('Description'), rate: Yup.number() - .min(0.01, 'Enter a rate percentage of at least 0.01%') + .min(0, 'Enter a rate percentage of at least 0%') .max(100, 'Enter a rate percentage of at most 100%') .required() .label('Rate'),