Don't show 'saved' on display name save error (#12600)

The save callback nees to throw on an error so the EditInPlace
component knows it's not been successful.
This commit is contained in:
David Baker 2024-06-13 09:54:38 +01:00 committed by GitHub
parent 7ae50dbce5
commit 2ed9b2e95e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -131,6 +131,7 @@ const UserProfileSettings: React.FC = () => {
setInitialDisplayName(displayName);
} catch (e) {
setDisplayNameError(true);
throw e;
}
}, [displayName, client]);