mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Refactoring
This commit is contained in:
parent
3f66bce39e
commit
365915e7d2
1 changed files with 10 additions and 7 deletions
|
@ -140,7 +140,10 @@ const self = (
|
||||||
});
|
});
|
||||||
|
|
||||||
if (vote != null) {
|
if (vote != null) {
|
||||||
_post.poll.choices.filter(c => c.id == vote.choice)[0].is_voted = true;
|
const myChoice = _post.poll.choices
|
||||||
|
.filter(c => c.id == vote.choice)[0];
|
||||||
|
|
||||||
|
myChoice.is_voted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue