Fix typo in condition check for a curve type (#10240)
This commit is contained in:
parent
fe7f0e1861
commit
a97dd7eaa1
@ -89,7 +89,7 @@ export function curveThreshold (curve: PalletReferendaCurve, input: BN, div: BN)
|
||||
)
|
||||
)
|
||||
);
|
||||
} else if (curve.asReciprocal) {
|
||||
} else if (curve.isReciprocal) {
|
||||
const { factor, xOffset, yOffset } = curve.asReciprocal;
|
||||
const div = x.add(xOffset);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user