aboutsummaryrefslogtreecommitdiff
path: root/src/components/Header/Header.tsx
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-06-29 22:10:04 +0300
committerGitHub <noreply@github.com>2020-06-29 22:10:04 +0300
commit98c5a70c17416e470544a4b597461771d5a36325 (patch)
tree10ca1c1f4dd342eaca3ff1aa7698c54ae1e0f10f /src/components/Header/Header.tsx
parent699c702ca941c0e7e5fdcb971c9135e28b80c221 (diff)
parentaed13f230d2673a489aec455e48d6edbb503e001 (diff)
downloadwhich-ui-98c5a70c17416e470544a4b597461771d5a36325.tar.gz
Merge pull request #52 from which-ecosystem/pollSubmission
feat: add poll submission component
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 1825647..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 !== undefined
+ userImage?.match(/\.(jpeg|jpg|gif|png)$/)
? <Avatar className={classes.avatar} src={userImage} />
: <AccountCircle />
}