Skip to content

Commit

Permalink
fix(admin-ui): Fix creation of variant with zero price
Browse files Browse the repository at this point in the history
Fixes #2917
  • Loading branch information
michaelbromley committed Jun 21, 2024
1 parent b06bdaf commit 317deef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class CreateProductVariantDialogComponent implements Dialog<CreateProduct

confirm() {
const { name, sku, options, price } = this.form.value;
if (!name || !sku || !options || !price) {
if (!name || !sku || !options || price == null) {
return;
}

Expand Down

0 comments on commit 317deef

Please sign in to comment.