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

Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
pull/21833/head
Michael Telatynski 2020-01-06 13:02:32 +00:00 committed by GitHub
parent 295dcbfe48
commit d5eb4ff310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);