From 0852cbeea6a3872c4a3a4b7dd974db53eb0a85dd Mon Sep 17 00:00:00 2001
From: ilyayudovin <ilyayudovin123@gmail.com>
Date: Mon, 29 Jun 2020 15:35:34 +0300
Subject: show new poll right after submit

---
 src/pages/FeedPage/FeedPage.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/pages/FeedPage/FeedPage.tsx')

diff --git a/src/pages/FeedPage/FeedPage.tsx b/src/pages/FeedPage/FeedPage.tsx
index afe2ef7..a7bbbbd 100644
--- a/src/pages/FeedPage/FeedPage.tsx
+++ b/src/pages/FeedPage/FeedPage.tsx
@@ -22,7 +22,7 @@ const FeedPage: React.FC<PropTypes> = ({ navigate, user }) => {
 
   return (
     <>
-      {user && <PollSubmission user={user} />}
+      {user && <PollSubmission user={user} polls={polls} setPolls={setPolls}/>}
       <Feed polls={polls} navigate={navigate} />
     </>
   );
-- 
cgit v1.2.3

