user data
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user