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 4cb831c commit 54606c0Copy full SHA for 54606c0
src/api/handlers/committee.ts
@@ -70,7 +70,13 @@ const ref = object({
70
return parent.customSimpleMajority;
71
}
72
const total = await getTotalPresentCount(parent as any);
73
- return Math.ceil(total / 2) + 1;
+ let majority: number;
74
+ if ((total / 2) % 1 == 0) {
75
+ majority = total / 2 + 1;
76
+ } else {
77
+ majority = Math.ceil(total / 2);
78
+ }
79
+ return majority > total ? total : majority;
80
81
}),
82
twoThirdsMajority: t.field({
0 commit comments