diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Header/Header.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 339f322..294c250 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -69,7 +69,7 @@ const Header: React.FC = () => { </IconButton> <IconButton onClick={handleProfile}> { - user?.avatarUrl?.match(/\.(jpeg|jpg|gif|png)$/) + user?.avatarUrl ? <Avatar className={classes.avatar} src={user?.avatarUrl} /> : <AccountCircle /> } |