diff options
author | Eugene Sokolov <eug-vs@keemail.me> | 2020-06-29 22:10:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 22:10:04 +0300 |
commit | 98c5a70c17416e470544a4b597461771d5a36325 (patch) | |
tree | 10ca1c1f4dd342eaca3ff1aa7698c54ae1e0f10f /src/components/Header/Header.tsx | |
parent | 699c702ca941c0e7e5fdcb971c9135e28b80c221 (diff) | |
parent | aed13f230d2673a489aec455e48d6edbb503e001 (diff) | |
download | which-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.tsx | 2 |
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 /> } |