add search by address (#1198)

This commit is contained in:
Thibaut Sardan
2023-01-25 10:44:20 +02:00
committed by GitHub
parent 908555b296
commit f1bd0d86ac
@@ -31,7 +31,8 @@ function Accounts ({ className }: Props): React.ReactElement {
filter
? hierarchy.filter((account) =>
account.name?.toLowerCase().includes(filter) ||
(account.genesisHash && networkMap.get(account.genesisHash)?.toLowerCase().includes(filter))
(account.genesisHash && networkMap.get(account.genesisHash)?.toLowerCase().includes(filter)) ||
account.address.toLowerCase().includes(filter)
)
: hierarchy
);