diff --git a/src/poll.ts b/src/poll.ts index e07a88020..aad89abde 100644 --- a/src/poll.ts +++ b/src/poll.ts @@ -208,10 +208,7 @@ export class Poll { if (isOwnVote) { if (isVoteAnswer(event.poll_vote)) { - latestAnswers = [ - event.poll_vote, - ...latestAnswers.filter((answer) => answer.id !== event.poll_vote.id), - ]; + latestAnswers = [event.poll_vote, ...latestAnswers.filter((answer) => answer.id !== event.poll_vote.id)]; ownAnswer = event.poll_vote; } else if (event.poll_vote.option_id) { if (event.poll.enforce_unique_votes) {