aboutsummaryrefslogtreecommitdiff
path: root/src/pages/FeedPage
diff options
context:
space:
mode:
authorEugene Sokolov <eug-vs@keemail.me>2020-07-03 18:22:40 +0300
committerGitHub <noreply@github.com>2020-07-03 18:22:40 +0300
commitcb521315c2291eda6b273b5f8a2e014c24ea9758 (patch)
tree3a3a42a347760ccdf54dadeb7dfbcfd673f32947 /src/pages/FeedPage
parent2e7f7610169391c78d852caea73190e5d8c0b978 (diff)
parent7fe63f3be94d8711bdfdf714d9a6129318546ef1 (diff)
downloadwhich-ui-cb521315c2291eda6b273b5f8a2e014c24ea9758.tar.gz
Merge pull request #58 from which-ecosystem/improvements
Improvements
Diffstat (limited to 'src/pages/FeedPage')
-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);
};