1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Remove OR operator in case statement (#785)

This commit is contained in:
Kris Liew 2021-08-11 17:45:05 +08:00 committed by GitHub
parent f74c40b9cf
commit d0b1534d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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