Additional check for malformed keys on waiting list (#3906)
This commit is contained in:
parent
72aa1581a1
commit
535e9b6cd2
@ -72,7 +72,7 @@ function getFiltered (stakingOverview: DeriveStakingOverview, favorites: string[
|
||||
|
||||
function extractNominators (nominations: [StorageKey, Option<Nominations>][]): Record<string, [string, EraIndex, number][]> {
|
||||
return nominations.reduce((mapped: Record<string, [string, EraIndex, number][]>, [key, optNoms]) => {
|
||||
if (optNoms.isSome) {
|
||||
if (optNoms.isSome && key.args.length) {
|
||||
const nominatorId = key.args[0].toString();
|
||||
const { submittedIn, targets } = optNoms.unwrap();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user