Filter on null keys (wrong encoding) (#2642)

This commit is contained in:
Jaco Greeff
2020-09-24 09:48:28 +02:00
committed by GitHub
parent 4f59866528
commit 6faea13a28
+1 -1
View File
@@ -21,7 +21,7 @@ export function stashes (instanceId: string, api: ApiInterfaceRx): () => Observa
map(([stashIds]) => stashIds)
)
: api.query.staking.validators.keys().pipe(
map((keys) => keys.map((key) => key.args[0] as AccountId))
map((keys) => keys.map((key) => key.args[0] as AccountId).filter((a) => a))
)
);
}