From 734d9361fceb4f777a2b3b1dae5cfd4f1afac76a Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 5 Dec 2022 14:25:57 +0100 Subject: [PATCH] fix(@wallet): do not show token if not visible fixes #8620 --- ui/imports/shared/views/TokenListView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/imports/shared/views/TokenListView.qml b/ui/imports/shared/views/TokenListView.qml index e3ebfc05ea..cb27ab2b77 100644 --- a/ui/imports/shared/views/TokenListView.qml +++ b/ui/imports/shared/views/TokenListView.qml @@ -45,7 +45,9 @@ Rectangle { ExpressionFilter { expression: { var tokenSymbolByAddress = searchTokenSymbolByAddressFn(d.searchString) - return symbol.startsWith(d.searchString.toUpperCase()) || name.toUpperCase().startsWith(d.searchString.toUpperCase()) || (tokenSymbolByAddress!=="" && symbol.startsWith(tokenSymbolByAddress)) + return networkVisible && ( + symbol.startsWith(d.searchString.toUpperCase()) || name.toUpperCase().startsWith(d.searchString.toUpperCase()) || (tokenSymbolByAddress!=="" && symbol.startsWith(tokenSymbolByAddress)) + ) } } ]