Skip to content

Commit

Permalink
fix(admin-ui): Fix creation of zero tax rates
Browse files Browse the repository at this point in the history
Fixes #2312
  • Loading branch information
michaelbromley committed Jul 25, 2023
1 parent 5162d0c commit 5f898b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f898b4

Please sign in to comment.