Fix ProfileSettings when avatarUrl is null

pull/21833/head
Germain Souquet 2021-09-03 12:50:42 +01:00
parent 475ef66c58
commit 3c36b3c2c0
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ export default class ProfileSettings extends React.Component<{}, IState> {
</p>
</div>
<AvatarSetting
avatarUrl={this.state.avatarUrl.toString()}
avatarUrl={this.state.avatarUrl?.toString()}
avatarName={this.state.displayName || this.state.userId}
avatarAltText={_t("Profile picture")}
uploadAvatar={this.uploadAvatar}