Skip to content

Commit 7316db7

Browse files
authored
Merge pull request #55 from topcoder-platform/issue_54
Fix avatar photo in mobile account menu
2 parents d425d1f + ad67844 commit 7316db7

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

dist/dev/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/prod/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AccountMenu/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class AccountMenu extends React.Component {
6262
<div className={cn(styles['header'], styles['header-mobile'])}>
6363
<div className={styles['left-content']}>
6464
{
65-
_.isEmpty(profile) ? (<IconAvatar width='60' className={styles['avatar']} />) : (<img src={profile.photoURL} width='60' className={styles['avatar']} alt='avatar' />)
65+
(_.isEmpty(profile) || _.isEmpty(profile.photoURL)) ? (<IconAvatar width='60' className={styles['avatar']} />) : (<img src={profile.photoURL} width='60' className={styles['avatar']} alt='avatar' />)
6666
}
6767
<div className={styles['handle-container']}>
6868
<span className={styles['handle']}>@{_.isEmpty(profile) ? '' : profile.handle}</span>

src/components/AccountMenu/styles.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
.menu {
190190
display: flex;
191191
flex-direction: column;
192+
margin-top: 15px;
192193

193194
.separator {
194195
background: $gray-05;

0 commit comments

Comments
 (0)