Skip to content

Commit

Permalink
Fix PR comment: Combine the ifs
Browse files Browse the repository at this point in the history
Signed-off-by: Olusegun Akintayo <[email protected]>
  • Loading branch information
segun committed Jun 5, 2023
1 parent ac2bdaf commit cf8545d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/components/hooks/useAddressBalance/useAddressBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,8 @@ const useAddressBalance = (asset: Asset, address?: string) => {
}
let fromAccBalance;

if (!asset) {
// if asset is undefined, we are fetching the balance of the selected account
setBalance();
} else if (
if (
!asset ||
asset.isETH ||
asset.tokenId ||
asset.standard === ERC721 ||
Expand Down

0 comments on commit cf8545d

Please sign in to comment.