Skip to content

Commit

Permalink
Fix: existing filter error when filtering on "Owned on"
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoistP committed Nov 5, 2024
1 parent 5905089 commit f7eebab
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ export function useAssetsViewUserProtocolFilter(
case AssetUserProtocolType.ALL:
return true
case AssetUserProtocolType.ETHEREUM:
return Asset.balance.ethereum.amount > 0
return Asset.balance?.ethereum?.amount > 0
case AssetUserProtocolType.GNOSIS:
return Asset.balance.gnosis.amount > 0
return Asset.balance?.gnosis?.amount > 0
case AssetUserProtocolType.RMM:
return Asset.balance.rmm.amount > 0
return Asset.balance?.rmm?.amount > 0
case AssetUserProtocolType.LEVINSWAP:
return Asset.balance.levinSwap.amount > 0
return Asset.balance?.levinSwap?.amount > 0
}
}

Expand Down

0 comments on commit f7eebab

Please sign in to comment.