fix: first product add
This commit is contained in:
parent
14bb0ff6e6
commit
b41e499591
1 changed files with 1 additions and 1 deletions
|
|
@ -585,7 +585,7 @@ const market = async () => {
|
||||||
|
|
||||||
let product = stallCart.products.find(p => p.id === item.id)
|
let product = stallCart.products.find(p => p.id === item.id)
|
||||||
if (!product) {
|
if (!product) {
|
||||||
product = { ...item, orderedQuantity: 1 }
|
product = { ...item, orderedQuantity: 0 }
|
||||||
stallCart.products.push(product)
|
stallCart.products.push(product)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue