aboutsummaryrefslogtreecommitdiff
path: root/src/components/PollsList/PollsList.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-10 13:47:02 +0300
committereug-vs <eug-vs@keemail.me>2020-08-10 13:47:02 +0300
commit78218c0f3427ad79de003ac59cffb99b08f0ae7d (patch)
tree1d5220d68ab8ebb392c87038f2fc24cc72b28775 /src/components/PollsList/PollsList.tsx
parent35fcdceb8f04fe333d45c5b1cb7ba395352c92d6 (diff)
downloadwhich-ui-78218c0f3427ad79de003ac59cffb99b08f0ae7d.tar.gz
fix: resolve eslint errors
Diffstat (limited to 'src/components/PollsList/PollsList.tsx')
-rw-r--r--src/components/PollsList/PollsList.tsx5
1 files changed, 2 insertions, 3 deletions
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);