From f7eebab32156e0824126e84bbf44a70eb94aef8a Mon Sep 17 00:00:00 2001 From: BenoistP Date: Tue, 5 Nov 2024 23:28:46 +0100 Subject: [PATCH] Fix: existing filter error when filtering on "Owned on" --- .../assetsView/filters/AssetsViewUserProtocolFilter.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/assetsView/filters/AssetsViewUserProtocolFilter.tsx b/src/components/assetsView/filters/AssetsViewUserProtocolFilter.tsx index 54f8c84..533880e 100644 --- a/src/components/assetsView/filters/AssetsViewUserProtocolFilter.tsx +++ b/src/components/assetsView/filters/AssetsViewUserProtocolFilter.tsx @@ -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 } }