mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 02:25:12 +00:00
upd: change condition
This commit is contained in:
parent
61cb46b171
commit
6b56163931
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ export class ApQuestionService {
|
|||
const newCount = apChoices.filter(ap => ap.name === choice).at(0)?.replies?.totalItems;
|
||||
if (newCount == null) throw new Error('invalid newCount: ' + newCount);
|
||||
|
||||
if (!(oldCount > newCount)) {
|
||||
if (oldCount <= newCount) {
|
||||
changed = true;
|
||||
poll.votes[poll.choices.indexOf(choice)] = newCount;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue