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:
parent
f74c40b9cf
commit
d0b1534d10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user