You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
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:
@@ -131,6 +131,7 @@ const UserProfileSettings: React.FC = () => {
|
||||
setInitialDisplayName(displayName);
|
||||
} catch (e) {
|
||||
setDisplayNameError(true);
|
||||
throw e;
|
||||
}
|
||||
}, [displayName, client]);
|
||||
|
||||
|
Reference in New Issue
Block a user