mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Avatar for current user was erroring since profileImage wasn't correct while uploading
This commit is contained in:
parent
8861644c58
commit
a3df887005
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ const Avatar = props => {
|
|||
|
||||
// TODO this is a temporary avatar fix for currentUser's profile data.
|
||||
// Avatar images should be included to all user's attributes in the future.
|
||||
if (avatarUser.profileImage) {
|
||||
if (avatarUser.profileImage && avatarUser.profileImage.id) {
|
||||
return (
|
||||
<div className={classes} title={displayName}>
|
||||
<ResponsiveImage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue