Prod/Dev mode
This commit is contained in:
@@ -112,7 +112,7 @@ const Dashboard: React.FC = () => {
|
||||
|
||||
const handleUpdateUserRole = async (userId: number, newRole: string) => {
|
||||
try {
|
||||
await userService.updateUserRole(userId, newRole);
|
||||
await userService.updateUser(userId, { role: newRole });
|
||||
// Reload data to reflect changes
|
||||
await loadData();
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user