Refactoring
This commit is contained in:
parent
69ab594ac7
commit
e1aea70154
|
@ -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…
Reference in New Issue