diff options
author | eug-vs <eug-vs@keemail.me> | 2020-08-10 00:02:24 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-08-10 00:02:24 +0300 |
commit | fd6e663a1bcc43cfc49bda99ccbfab380489324b (patch) | |
tree | ea25ea2c81db0f64e10123dbadd73f361b904da2 /src/components/PollCard | |
parent | 359ec6a68ea92b3d1eecf020742157eb3be90b9f (diff) | |
download | which-ui-fd6e663a1bcc43cfc49bda99ccbfab380489324b.tar.gz |
feat!: add useLocalStorage hook
Diffstat (limited to 'src/components/PollCard')
-rw-r--r-- | src/components/PollCard/PollCard.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PollCard/PollCard.tsx b/src/components/PollCard/PollCard.tsx index 98ae001..2378945 100644 --- a/src/components/PollCard/PollCard.tsx +++ b/src/components/PollCard/PollCard.tsx @@ -58,7 +58,7 @@ const PollCard: React.FC<PropTypes> = ({ initialPoll }) => { const date: string = new Date(poll.createdAt).toLocaleString('default', DATE_FORMAT); const handleVote = (which: Which) => { - if (!isAuthenticated()) { + if (!isAuthenticated) { enqueueSnackbar('Unauthorized users can not vote in polls', { variant: 'error' }); |