nagasurendra commited on
Commit
f2fa4b6
·
verified ·
1 Parent(s): fe811c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ def modal_js():
187
  const extrasCost = extras.reduce((total, extra) => total + (extra.price * extra.quantity), 0);
188
  const totalCost = (price * quantity) + extrasCost;
189
 
190
- // Add the item to the cart
191
  cart.push({ name, price, quantity, extras, instructions, totalCost });
192
  totalCartCost += totalCost; // Update the total cost of the cart
193
  updateCartButton();
 
187
  const extrasCost = extras.reduce((total, extra) => total + (extra.price * extra.quantity), 0);
188
  const totalCost = (price * quantity) + extrasCost;
189
 
190
+ // Add the item to the cart with its specific add-ons
191
  cart.push({ name, price, quantity, extras, instructions, totalCost });
192
  totalCartCost += totalCost; // Update the total cost of the cart
193
  updateCartButton();