user data

This commit is contained in:
Abin Toppo
2025-09-22 13:54:57 +05:30
parent 5a9e80f56f
commit db268c84ee
5 changed files with 87 additions and 75 deletions
+4 -2
View File
@@ -62,7 +62,8 @@ const ManagementScreen: FC = () => {
console.log("👤 Profile Status Response:", json.data.role);
if (json.status === "success") {
setUserRole(json.data.role);
console.log("User Role:", json.data);
setUserRole(json.data.role || user.role);
if (json.data.profileStatus === false) {
@@ -88,7 +89,8 @@ const ManagementScreen: FC = () => {
setLoading(true);
setError(null);
try {
console.log(" abin user : ", userRole)
console.log(" abin user: ", userRole)
console.log('----',user)
if (userRole === "ORGANIZER") {
// Fetch all data concurrently
const [myGroupsRes, joinedGroupsRes, requestsRes] = await Promise.all([