mahdi-eth / Hitek

A complete MERN-Stack e-commerce web application made with Reactjs/expressjs/mongodb/nodejs
https://mahdi-eth.github.io/Hitek/
6 stars 0 forks source link

Toaster shown after navigating to another page when user clicks on buy button #15

Open mahdi-eth opened 1 year ago

mahdi-eth commented 1 year ago

Bug Report

Description: When the user clicks on the "Buy" button, the toaster that confirms the product has been added to the cart is shown after navigating to another page. This behavior is unexpected and confusing for the user.

Steps to Reproduce:

  1. Go to the product page
  2. Click on the "Buy" button
  3. Immediately navigate to another page
  4. The toaster confirming the product has been added to the cart is shown

Expected Behavior: The toaster confirming the product has been added to the cart should be shown immediately after clicking on the "Buy" button, regardless of any subsequent navigation.

Actual Behavior: The toaster confirming the product has been added to the cart is shown after navigating to another page, causing confusion for the user.

mahdi-eth commented 1 year ago

@Mohammad-dn

Mohammad-dn commented 1 year ago

I know This is just test sample I will fix this bug when the basket page is ready

Mohammad-dn commented 1 year ago

@mahdi-eth

mahdi-eth commented 1 year ago

Thank you for your contribution👍🏻