Skip to content

Dashboard Hooks Call Non-Existent API Endpoints #141

@respp

Description

@respp

📘 Issue Description

Several hooks in the dashboard (useDashboard, useBookingDetails) are calling API endpoints that do not exist in the backend. This results in broken calls and inconsistent data handling.

🔍 Steps

  1. Review hooks (useDashboard.ts, lines 59, 77, 95, 113).
  2. Verify which backend endpoints are available for bookings, profiles, wallets, and dashboard stats.
  3. Update API service URLs in services/api.ts.
  4. Add fallbacks and error handling for missing endpoints.

✅ Acceptance Criteria

  • All API calls in dashboard hooks point to valid backend endpoints.
  • Calls to non-existent endpoints are removed or corrected.
  • Error handling is implemented for unavailable endpoints.
  • Dashboard renders real user data instead of mock/failing calls.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions