aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/Header.tsx
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-06-29 17:31:51 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-06-29 17:31:51 +0300
commit856522da17348e54b0d390f10772c21b4029e9bd (patch)
treee3642a46d926b6dc4ceae041083112492486c410 /src/components/Header/Header.tsx
parent0852cbeea6a3872c4a3a4b7dd974db53eb0a85dd (diff)
downloadwhich-ui-856522da17348e54b0d390f10772c21b4029e9bd.tar.gz
fix: make code redably clear
Diffstat (limited to 'src/components/Header/Header.tsx')
-rw-r--r--src/components/Header/Header.tsx2
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 />
}