gray-mueller / gray-mueller/food-delivery-clone-app-using-react-native

Enatega Admin Dashboard: Earnings Page Displays Error When Logging In from Restaurant Account

Open
#159 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
When a user logs in from a restaurant account, navigating to the Earnings page results in an unexpected error message instead of displaying the earnings data. This issue does not occur when logging in from other user types (e.g., admin or delivery accounts).

Steps to Reproduce:

Log in to the application using valid restaurant credentials.
Navigate to the Earnings page from the main menu or dashboard.
Observe that an error message appears instead of the expected earnings information.
Expected behavior
The Earnings page should load successfully and display relevant financial data (e.g., total earnings, payout history, etc.) for the restaurant account.

Screenshots

kmkm.zip

Desktop (please complete the following information):

OS: [e.g. Windows]
Browser [e.g. chrome, ]
Version [e.g. Latest]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with restaurant credentials and navigating to the Earnings page in the admin dashboard. Inspect the Earnings page entry point and the request or error path used for restaurant accounts; the work is done when earnings data loads for restaurant users without changing the existing behavior for other account types.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.