rishipurwar1 / FrontendPro

FrontendPro - Become a Pro in Frontend Development with our Frontend Challenges
https://www.frontendpro.dev
MIT License
385 stars 85 forks source link

Duplicate Challenge in "In-Progress Challenges" Section #256

Open sahilatahar opened 10 months ago

sahilatahar commented 10 months ago

Describe the bug When I takes a challenge on the Frontend Challenges and then clicks on "Take Challenge" button again, it gets added twice in the "In-Progress Challenges" section. This behavior can be confusing for users and may lead to inaccurate tracking of their progress.

To Reproduce Steps to reproduce the behavior:

  1. Go to any challenge
  2. Click on "Start Challenge"
  3. Go to my Solutions and see in-progress-challenges section. You can find that challenge
  4. Go to same challenge page again and click on "Start Challenge" then go to my Solutions and see in-progress-challenges section. You will find same challenge added twice.

Expected behavior

Screenshots image In this image as you can see there are two "Toast Notification Component".

Desktop (please complete the following information):

Additional Information:

rishipurwar1 commented 10 months ago

Hello @sahilatahar Thanks for reporting this issue.

We've already handled this edge case but don't know why it's happening for you. Is it happening for all the challenges or only for this challenge?

sahilatahar commented 10 months ago

Hello @rishipurwar1, I have checked and Its happening for other challenges also.

image