Skip to content

fix bug: show error toast when proceeding to checkout with empty cart…#66

Open
ranjangupta4590 wants to merge 4 commits intocu-sanjay:mainfrom
ranjangupta4590:fix-wrong-toast-style-when-cart-empty
Open

fix bug: show error toast when proceeding to checkout with empty cart…#66
ranjangupta4590 wants to merge 4 commits intocu-sanjay:mainfrom
ranjangupta4590:fix-wrong-toast-style-when-cart-empty

Conversation

@ranjangupta4590
Copy link
Copy Markdown

Hi!
I’ve fixed the issue “Wrong toast style shown when cart is empty #57 "

Summary of changes

Updated the checkout validation logic to show an error toast (❗) instead of a success toast when attempting to proceed with an empty cart.

Message displayed: “Your cart is empty!”

✅ Outcome

Now, clicking “Proceed to Checkout” with an empty cart correctly displays a red error toast, preventing misleading success messages.

Contributing as part of Hacktoberfest 2025

@vercel
Copy link
Copy Markdown

vercel bot commented Oct 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
quickbasket Ready Ready Preview Comment Oct 19, 2025 1:42pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@cu-sanjay cu-sanjay added the conflicts Pull request has merge conflicts that need resolution. label Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicts Pull request has merge conflicts that need resolution.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants