nagasurendra commited on
Commit
a2bf545
·
verified ·
1 Parent(s): fefca07

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +1 -1
templates/cart.html CHANGED
@@ -413,7 +413,7 @@
413
  let selectedCoupon = couponDropdown.value.trim(); // Get selected coupon from the dropdown
414
 
415
  // If no coupon is selected, alert the user
416
- if (!selectedCoupon || selectedCoupon === "None") {
417
  alert("Please select a valid coupon before proceeding.");
418
  return;
419
  }
 
413
  let selectedCoupon = couponDropdown.value.trim(); // Get selected coupon from the dropdown
414
 
415
  // If no coupon is selected, alert the user
416
+ if (selectedCoupon === "None" || selectedCoupon === "Null") {
417
  alert("Please select a valid coupon before proceeding.");
418
  return;
419
  }