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;
|
const newCount = apChoices.filter(ap => ap.name === choice).at(0)?.replies?.totalItems;
|
||||||
if (newCount == null) throw new Error('invalid newCount: ' + newCount);
|
if (newCount == null) throw new Error('invalid newCount: ' + newCount);
|
||||||
|
|
||||||
if (!(oldCount > newCount)) {
|
if (oldCount <= newCount) {
|
||||||
changed = true;
|
changed = true;
|
||||||
poll.votes[poll.choices.indexOf(choice)] = newCount;
|
poll.votes[poll.choices.indexOf(choice)] = newCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue