diff --git a/src/utils/compareAsBN.ts b/src/utils/compareAsBN.ts index 8038773d9..f3c519706 100644 --- a/src/utils/compareAsBN.ts +++ b/src/utils/compareAsBN.ts @@ -8,7 +8,8 @@ export default function compareAsBN(balance: string, price: string): boolean { const compare = aBN.comparedTo(bBN) switch (compare) { - case 1 || 0: // balance is greater or equal to price + case 1: // balance is greater than price + case 0: // balance is equal to price return true default: return false