Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Oct 30, 2024
1 parent b4082d8 commit f1610eb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ export class Poll<SCG extends ExtendableGenerics = DefaultGenerics> {

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) {
Expand Down

0 comments on commit f1610eb

Please sign in to comment.