1
0
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:
David Baker
2024-06-13 09:54:38 +01:00
committed by GitHub
parent 7ae50dbce5
commit 2ed9b2e95e
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]);