mirror of https://github.com/vector-im/riot-web
Fix ProfileSettings when avatarUrl is null
parent
475ef66c58
commit
3c36b3c2c0
|
@ -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