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:
parent
7ae50dbce5
commit
2ed9b2e95e
2 changed files with 20 additions and 0 deletions
|
@ -131,6 +131,7 @@ const UserProfileSettings: React.FC = () => {
|
|||
setInitialDisplayName(displayName);
|
||||
} catch (e) {
|
||||
setDisplayNameError(true);
|
||||
throw e;
|
||||
}
|
||||
}, [displayName, client]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue