Merge pull request #6736 from matrix-org/gsouquet/fix-18876
Fix ProfileSettings when avatarUrl is null
This commit is contained in:
commit
bfad9c0599
1 changed files with 1 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue