Fix username not being updated when loading their profile after registration

This commit is contained in:
MartinBraquet
2025-09-16 21:38:19 +02:00
parent 0f05304ec3
commit 5cf89392ff

View File

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