mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Merge pull request #6736 from matrix-org/gsouquet/fix-18876
Fix ProfileSettings when avatarUrl is null
This commit is contained in:
commit
bfad9c0599
@ -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 New Issue
Block a user