From 78218c0f3427ad79de003ac59cffb99b08f0ae7d Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Mon, 10 Aug 2020 13:47:02 +0300
Subject: fix: resolve eslint errors

---
 src/components/PollsList/PollsList.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/components/PollsList/PollsList.tsx')

diff --git a/src/components/PollsList/PollsList.tsx b/src/components/PollsList/PollsList.tsx
index 0fd8fa4..c95bfde 100644
--- a/src/components/PollsList/PollsList.tsx
+++ b/src/components/PollsList/PollsList.tsx
@@ -17,13 +17,12 @@ interface RenderPropTypes {
 
 
 const PollsList: React.FC<PropTypes> = ({ polls, mutate }) => {
-
   const RenderItem: React.FC<RenderPropTypes> = ({ index, style, key }) => {
     const poll = polls[index];
 
-    const setPoll = (poll: Poll) => {
+    const setPoll = (newPoll: Poll) => {
       const newPolls = [...polls];
-      newPolls[index] = poll;
+      newPolls[index] = newPoll;
 
       // Force-update list-size so everything re-renders
       mutate([], false);
-- 
cgit v1.2.3

