Skip to content

Commit

Permalink
Merge pull request #1635 from lumi-tip/development-lumi-hotfix
Browse files Browse the repository at this point in the history
🚑 quick hotfix to avoid toast in checkout
  • Loading branch information
tommygonzaleza authored Oct 8, 2024
2 parents 52a4efb + e6448c3 commit 057e01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/checkout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function Checkout() {
};

const handleCoupon = (coupons, actions) => {
const alreadyAppliedCoupon = selfAppliedCoupon?.slug === discountCode || selfAppliedCoupon?.slug === couponValue;
const alreadyAppliedCoupon = (selfAppliedCoupon?.slug && selfAppliedCoupon?.slug === discountCode) || (selfAppliedCoupon?.slug && selfAppliedCoupon?.slug === couponValue);

if (alreadyAppliedCoupon) {
toast({
Expand Down

0 comments on commit 057e01a

Please sign in to comment.