From 16e55505c09cd566912f16c9fd59b19823b69463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Tue, 23 Jul 2024 12:48:06 +0200 Subject: [PATCH] fix(Wallet/AssetsView): Properly filter by account/chain Closes: #15683 --- ui/imports/shared/views/AssetsViewAdaptor.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/imports/shared/views/AssetsViewAdaptor.qml b/ui/imports/shared/views/AssetsViewAdaptor.qml index 6899e37d66..794c7890c1 100644 --- a/ui/imports/shared/views/AssetsViewAdaptor.qml +++ b/ui/imports/shared/views/AssetsViewAdaptor.qml @@ -78,7 +78,6 @@ QObject { marketPrice [double] - specifies market price in currently used currency marketChangePct24hour [double] - percentage price change in last 24 hours, e.g. 0.5 for 0.5% of price change - position [int] - if custom order available, display position fetched from ManageTokensController canBeHidden [bool] - specifies if given token can be hidden (e.g. ETH should be always visible) communityIcon [url] - renamed from communityImage @@ -117,6 +116,9 @@ QObject { if (!model.visible) return false + if (filteredBalances.ModelCount.count === 0) + return false + if (hasCommunityId) return true @@ -176,7 +178,7 @@ QObject { expectedRoles: ["tokensKey", "symbol", "image", "balances", "decimals", "detailsLoading", "marketDetails", "communityId", "communityImage", - "position", "visible"] + "visible"] exposedRoles: ["key", "error", "balance", "balanceText", "icon", "visible", "canBeHidden", "marketDetailsAvailable", "marketDetailsLoading",