From 8a71d336e5185ffd32bbaea86b7c37f8c36a407a Mon Sep 17 00:00:00 2001 From: "Mahmoud M. Abdalla" Date: Thu, 31 Jul 2025 03:21:43 +0300 Subject: [PATCH] Fix dashboard data access issue - Fixed data access path to use .data wrapper - Updated all dashboard cards to use correct data structure - Updated debug section to show correct data access - Fixed trainer and trainee dashboard data access - The issue was that API response has extra 'data' wrapper --- frontend/src/pages/Dashboard.js | 60 ++++++++++++++++----------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/frontend/src/pages/Dashboard.js b/frontend/src/pages/Dashboard.js index 1b8cae8..3654506 100644 --- a/frontend/src/pages/Dashboard.js +++ b/frontend/src/pages/Dashboard.js @@ -164,17 +164,17 @@ const Dashboard = () => {

Is Super Admin: {isSuperAdmin ? 'Yes' : 'No'}

Card Values:

Direct Test Values:

Loading States: