Skip to content

Commit

Permalink
Merge pull request #4546 from mirumee/fix-null-avatar
Browse files Browse the repository at this point in the history
Fix rendering user avatar when it's null
  • Loading branch information
maarcingebala committed Jul 29, 2019
2 parents 7b3de41 + 0a01eac commit cf43e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Allow selecting the number of rows displayed in dashboard's list views - #4414 by @benekex2
- Fix generating random avatars when updating staff accounts - #4521 by @maarcingebala
- Changed license for artwork to CC-BY 4.0

- Fix rendering user avatar when it's null #4546 by @maarcingebala

## 2.8.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ const AppLayout = withStyles(styles, {
>
<Chip
avatar={
<Avatar alt="user" src={user.avatar.url} />
user.avatar && (
<Avatar alt="user" src={user.avatar.url} />
)
}
className={classes.userChip}
label={
Expand Down

0 comments on commit cf43e0e

Please sign in to comment.