fix(@wallet): do not show token if not visible

fixes #8620
This commit is contained in:
Anthony Laibe 2022-12-05 14:25:57 +01:00 committed by Anthony Laibe
parent 9aaea49e2c
commit 734d9361fc
1 changed files with 3 additions and 1 deletions

View File

@ -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))
)
}
}
]