Added some error message handling and added basic info about functionality on ui
This commit is contained in:
@ -50,18 +50,10 @@ const fetch = async (userId: string) => {
|
||||
})
|
||||
|
||||
if (copied) {
|
||||
return {
|
||||
id: copied.id,
|
||||
username: copied.name,
|
||||
role: copied.role
|
||||
}
|
||||
return copied
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
id: user.id,
|
||||
username: user.name,
|
||||
role: user.role
|
||||
}
|
||||
return user
|
||||
}
|
Reference in New Issue
Block a user