We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e9e5cb commit e64242cCopy full SHA for e64242c
src/components/vote-count/useVoteData.ts
@@ -36,9 +36,9 @@ function getVoteStatus({
36
neededToWin,
37
}: Omit<VoteData, 'status'>): VoteStatus {
38
if (total === 0) return 'loading';
39
- if (yes + no + contested === total && contested > 0) return 'contested';
40
if (yes >= neededToWin) return 'win';
41
if (no >= neededToWin) return 'loss';
+ if (yes + no + contested === total && contested > 0) return 'contested';
42
return 'beforeResult';
43
}
44
0 commit comments