diff options
author | eug-vs <eug-vs@keemail.me> | 2020-07-03 18:15:21 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-07-03 18:15:21 +0300 |
commit | 2e4e67d5789de2fb736becb6b349fc4d2037c385 (patch) | |
tree | 029667785cfd82aa7d639c3b1169d17b5626a106 | |
parent | e4a641aca387370adf5bfbe06f3f9ea9ed22215d (diff) | |
download | which-ui-2e4e67d5789de2fb736becb6b349fc4d2037c385.tar.gz |
fix: immediately show new poll
-rw-r--r-- | src/pages/FeedPage/FeedPage.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/FeedPage/FeedPage.tsx b/src/pages/FeedPage/FeedPage.tsx index d29103a..b591141 100644 --- a/src/pages/FeedPage/FeedPage.tsx +++ b/src/pages/FeedPage/FeedPage.tsx @@ -19,7 +19,8 @@ const FeedPage: React.FC = () => { const addPoll = (poll: Poll): void => { polls.unshift(poll); - setPolls([...polls]); + setPolls([]); + setPolls(polls); }; |