sub accounts search fix (#2572)
* sub accounts search fix * bool type cast fix
This commit is contained in:
parent
0140485bc1
commit
178b241ac0
@ -84,8 +84,9 @@ function checkVisibility (api: ApiPromise, address: string, filterName: string,
|
||||
|
||||
if (accountId?.toString().includes(filterName) || accountIndex?.toString().includes(filterName)) {
|
||||
isVisible = true;
|
||||
} else if (api.query.identity && api.query.identity.identityOf && identity?.display) {
|
||||
isVisible = identity.display.toLowerCase().includes(filterLower);
|
||||
} else if (api.query.identity && api.query.identity.identityOf) {
|
||||
isVisible = (!!identity?.display && identity.display.toLowerCase().includes(filterLower)) ||
|
||||
(!!identity?.displayParent && identity.displayParent.toLowerCase().includes(filterLower));
|
||||
} else if (nickname) {
|
||||
isVisible = nickname.toLowerCase().includes(filterLower);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user