aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Feed/Feed.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Feed/Feed.tsx b/src/components/Feed/Feed.tsx
index 9918a3d..b857cc0 100644
--- a/src/components/Feed/Feed.tsx
+++ b/src/components/Feed/Feed.tsx
@@ -20,7 +20,8 @@ const Feed: React.FC<PropTypes> = ({ polls }) => {
const RenderItem: React.FC<RenderPropTypes> = ({ index, style, key }) => {
const poll = polls[index];
return (
- <div key={key} style={style}>
+ // To re-render on list resize, add this info to key
+ <div key={key + polls.length} style={style}>
<PollCard initialPoll={poll} />
</div>
);