diff --git a/Groceries/wwwroot/js/controllers/transaction-item-form.js b/Groceries/wwwroot/js/controllers/transaction-item-form.js index 45e5a94..b2d890b 100644 --- a/Groceries/wwwroot/js/controllers/transaction-item-form.js +++ b/Groceries/wwwroot/js/controllers/transaction-item-form.js @@ -32,7 +32,7 @@ export default class TransactionItemFormController extends Controller { this.priceTarget.value = option.getAttribute("data-price"); } if (!this.quantityTarget.value || this.quantityTarget.value === "1") { - this.quantityTarget.value = option.getAttribute("data-quantity"); + this.quantityTarget.value = option.getAttribute("data-quantity") || "1"; } } }