Merge pull request #6736 from matrix-org/gsouquet/fix-18876

Fix ProfileSettings when avatarUrl is null
This commit is contained in:
Germain 2021-09-03 13:47:14 +01:00 committed by GitHub
commit bfad9c0599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}