From b41e499591318999e82d49e9b4a30ed3c1f2f70c Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 7 Jul 2023 10:55:34 +0300 Subject: [PATCH] fix: first product add --- static/js/market.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/market.js b/static/js/market.js index 0ce9162..c220a7b 100644 --- a/static/js/market.js +++ b/static/js/market.js @@ -585,7 +585,7 @@ const market = async () => { let product = stallCart.products.find(p => p.id === item.id) if (!product) { - product = { ...item, orderedQuantity: 1 } + product = { ...item, orderedQuantity: 0 } stallCart.products.push(product) }