Subbu1304 commited on
Commit
442e0d4
·
verified ·
1 Parent(s): 29fa242

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +2 -2
templates/menu.html CHANGED
@@ -1049,7 +1049,7 @@ function increaseQuantity(name, index) {
1049
  currentQuantity++;
1050
  quantityElement.innerText = currentQuantity;
1051
 
1052
- updateCartQuantity(name, currentQuantity);
1053
  }
1054
 
1055
  // Function to decrease quantity
@@ -1082,7 +1082,7 @@ function increaseQuantity(name, index) {
1082
  removeFromCart(name, index); // Remove item from the cart when quantity reaches 0
1083
  } else {
1084
  // Otherwise, update cart quantity
1085
- updateCartQuantity(name, currentQuantity);
1086
  }
1087
  }
1088
  }
 
1049
  currentQuantity++;
1050
  quantityElement.innerText = currentQuantity;
1051
 
1052
+ updateQuantity(name, currentQuantity);
1053
  }
1054
 
1055
  // Function to decrease quantity
 
1082
  removeFromCart(name, index); // Remove item from the cart when quantity reaches 0
1083
  } else {
1084
  // Otherwise, update cart quantity
1085
+ updateQuantity(name, currentQuantity);
1086
  }
1087
  }
1088
  }