diff options
author | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-29 17:31:51 +0300 |
---|---|---|
committer | ilyayudovin <ilyayudovin123@gmail.com> | 2020-06-29 17:31:51 +0300 |
commit | 856522da17348e54b0d390f10772c21b4029e9bd (patch) | |
tree | e3642a46d926b6dc4ceae041083112492486c410 /src/components/Header/Header.tsx | |
parent | 0852cbeea6a3872c4a3a4b7dd974db53eb0a85dd (diff) | |
download | which-ui-856522da17348e54b0d390f10772c21b4029e9bd.tar.gz |
fix: make code redably clear
Diffstat (limited to 'src/components/Header/Header.tsx')
-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 363e300..d0d9081 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -62,7 +62,7 @@ const Header: React.FC<PropTypes> = ({ navigate, userImage }) => { </IconButton> <IconButton onClick={handleProfile}> { - userImage?.match(/\.(jpeg|jpg|gif|png)$/) !== null + userImage?.match(/\.(jpeg|jpg|gif|png)$/) ? <Avatar className={classes.avatar} src={userImage} /> : <AccountCircle /> } |