mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-07 04:21:01 -05:00
Fix username not being updated when loading their profile after registration
This commit is contained in:
@@ -56,6 +56,7 @@ export const useEditableUserInfo = (user: User) => {
|
||||
try {
|
||||
await updateUser({ username: newUsername })
|
||||
updateUserState({ errorUsername: '', username: newUsername })
|
||||
user.username = newUsername
|
||||
} catch (reason) {
|
||||
updateUserState({
|
||||
errorUsername: (reason as APIError).message,
|
||||
|
||||
Reference in New Issue
Block a user