1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Update src/components/views/settings/ProfileSettings.js

Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
Michael Telatynski
2020-01-06 13:02:32 +00:00
committed by GitHub
parent 295dcbfe48
commit d5eb4ff310

View File

@@ -89,7 +89,7 @@ export default class ProfileSettings extends React.Component {
newState.originalAvatarUrl = newState.avatarUrl;
newState.avatarFile = null;
} else if (this.state.originalAvatarUrl !== this.state.avatarUrl) {
await client.setAvatarUrl(""); // use empty string as Synapse 500's on undefined
await client.setAvatarUrl(""); // use empty string as Synapse 500s on undefined
}
this.setState(newState);