fix: refresh poll result correctly

This commit is contained in:
2022-09-29 00:25:29 +08:00
parent 22304cb03d
commit c976a67a65

View File

@@ -363,7 +363,7 @@ class FlowItem extends PureComponent {
{info.poll && (
<div className="box-poll">
<Poll
key={info.poll.vote || 'x'}
key={info.poll.answers.map((a) => a.votes).join('_')}
question={''}
answers={info.poll.answers}
onVote={do_vote}