diff --git a/packages/api-derive/src/staking/query.ts b/packages/api-derive/src/staking/query.ts index ea1dd3b6ee..76ff24abeb 100644 --- a/packages/api-derive/src/staking/query.ts +++ b/packages/api-derive/src/staking/query.ts @@ -67,7 +67,9 @@ function retrievePrev (api: ApiInterfaceRx, stashId: AccountId): Observable { return combineLatest([ api.query.staking.bonded.multi>(stashIds), - api.query.staking.nominators.multi>(stashIds), + api.query.staking.nominators + ? api.query.staking.nominators.multi>(stashIds) + : of(stashIds.map(() => api.registry.createType('Option'))), api.query.staking.payee.multi(stashIds), api.query.staking.validators.multi(stashIds), api.consts.session?.dedupKeyPrefix