gray-mueller / gray-mueller/restaurant-ordering-system-using-react-js

Favorite button requires multiple clicks to work and is non-functional in restaurant details view

Open
#577 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
In the Enatega Multivendor app, the Favorite button to add or remove a restaurant from favorites does not work properly. On the first click, the action is not performed, and it only works after the second or third click. Additionally, when opening the restaurant details page, the Favorite button is completely non-functional.

To Reproduce
Steps to reproduce the behavior:

Go to the restaurant list page.
Try to add a restaurant to favorites by clicking the Favorite (heart) icon.
Observe that it doesn’t add on the first click and may take 2–3 clicks to work.
Try to remove it from favorites — the same issue occurs.
Open the restaurant’s details page.
Attempt to add or remove from favorites.
Expected behavior
The Favorite button should work instantly on the first click in both the restaurant list and details view.

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.

Labels: Enatega Multivendor Customer App, Bug

Contributor guide

Open the contributing guide

Research direction

Start by locating the Favorite button implementations in the restaurant list and restaurant details views, then reproduce the first-click failure while observing the favorite state and request behavior. The fix is complete when adding and removing a restaurant works on the first click in both views.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.