aboutsummaryrefslogtreecommitdiff
path: root/src/components/PollsList
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-17 19:16:15 +0300
committereug-vs <eug-vs@keemail.me>2020-08-17 19:16:15 +0300
commitca59e0bc05a139fe57d27b62f5e523832a9c0e0a (patch)
treef8ac4460688f84e023ff3352db9f7847a5729507 /src/components/PollsList
parent20e5f105db0976b637f5dcad538ac40aa4c2d110 (diff)
downloadwhich-ui-ca59e0bc05a139fe57d27b62f5e523832a9c0e0a.tar.gz
fix: add pollId to key in PollsList
Diffstat (limited to 'src/components/PollsList')
-rw-r--r--src/components/PollsList/RenderItem.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/PollsList/RenderItem.tsx b/src/components/PollsList/RenderItem.tsx
index 5123bca..beed259 100644
--- a/src/components/PollsList/RenderItem.tsx
+++ b/src/components/PollsList/RenderItem.tsx
@@ -35,7 +35,7 @@ const RenderItem: React.FC<PropTypes> = React.memo(({
}, [mutate, index, polls]);
return (
- <div key={_key} style={style}>
+ <div key={`${_key}-${poll._id}`} style={style}>
<PollCard poll={poll} setPoll={setPoll} />
</div>
);