Преглед изворни кода

fix(admin-ui): Fix creation of variant with zero price

Fixes #2917
Michael Bromley пре 1 година
родитељ
комит
317deef668

+ 1 - 1
packages/admin-ui/src/lib/catalog/src/components/create-product-variant-dialog/create-product-variant-dialog.component.ts

@@ -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;
         }