Avatar for current user was erroring since profileImage wasn't correct while uploading

This commit is contained in:
Vesa Luusua 2017-09-08 15:13:13 +03:00
parent 8861644c58
commit a3df887005

View file

@ -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