mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
User might not have profileimage by default: a regression bug.
This commit is contained in:
parent
02ef54c898
commit
7615f4f64d
1 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,8 @@ export class ProfileSettingsPageComponent extends Component {
|
|||
|
||||
const user = ensureCurrentUser(currentUser);
|
||||
const { firstName, lastName } = user.attributes.profile;
|
||||
const profileImage = image || { imageId: user.profileImage.id };
|
||||
const profileImageId = user.profileImage ? user.profileImage.id : null;
|
||||
const profileImage = image || { imageId: profileImageId };
|
||||
|
||||
const profileSettingsForm = user.id
|
||||
? <ProfileSettingsForm
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue