We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 977b854 commit 8dacaa3Copy full SHA for 8dacaa3
src/shared/components/Header/index.jsx
@@ -39,8 +39,8 @@ const Header = ({ profile }) => {
39
40
let normalizedProfile = profile && _.clone(profile);
41
if (profile) {
42
- normalizedProfile.photoURL = _.has(profile, 'photoURL') ? `${config.CDN.PUBLIC}/avatar/${
43
- encodeURIComponent(normalizedProfile.photoURL)}?size=32` : '';
+ normalizedProfile.photoURL = (_.has(profile, 'photoURL') && profile.photoURL !== null) ?
+ `${config.CDN.PUBLIC}/avatar/${encodeURIComponent(profile.photoURL)}?size=32` : '';
44
} else {
45
normalizedProfile = null;
46
}
0 commit comments