Sfoglia il codice sorgente

fix(admin-ui): Fix creation of zero tax rates

Fixes #2312
Michael Bromley 2 anni fa
parent
commit
5f898b43fa

+ 1 - 1
packages/admin-ui/src/lib/settings/src/components/tax-rate-detail/tax-rate-detail.component.ts

@@ -85,7 +85,7 @@ export class TaxRateDetailComponent
         }
         const { name, enabled, value, taxCategoryId, zoneId, customerGroupId, customFields } =
             this.detailForm.value;
-        if (!name || enabled == null || !value || !taxCategoryId || !zoneId) {
+        if (!name || enabled == null || value == null || !taxCategoryId || !zoneId) {
             return;
         }
         const formValue = this.detailForm.value;