Added some error message handling and added basic info about functionality on ui

This commit is contained in:
Tom
2024-01-06 20:17:04 +00:00
parent 0f7fb11f4e
commit 68df045c54
13 changed files with 232 additions and 93 deletions

View File

@ -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
}