Skip to content

Commit

Permalink
fix isBankVisibleForUser logic
Browse files Browse the repository at this point in the history
  • Loading branch information
riordanp committed Oct 26, 2024
1 parent e016e10 commit 5f6e66e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/bank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const isBankVisibleForUser = (
return (
bank.reduceOnly !== TOKEN_REDUCE_ONLY_OPTIONS.ENABLED ||
(bank.reduceOnly === TOKEN_REDUCE_ONLY_OPTIONS.ENABLED &&
borrowedAmount !== 0 &&
balance !== 0)
(borrowedAmount !== 0 || balance !== 0))
)
}

0 comments on commit 5f6e66e

Please sign in to comment.