aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-07-03 18:15:21 +0300
committereug-vs <eug-vs@keemail.me>2020-07-03 18:15:21 +0300
commit2e4e67d5789de2fb736becb6b349fc4d2037c385 (patch)
tree029667785cfd82aa7d639c3b1169d17b5626a106
parente4a641aca387370adf5bfbe06f3f9ea9ed22215d (diff)
downloadwhich-ui-2e4e67d5789de2fb736becb6b349fc4d2037c385.tar.gz
fix: immediately show new poll
-rw-r--r--src/pages/FeedPage/FeedPage.tsx3
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);
};