Skip to content

Commit

Permalink
L1-63: Fix missing data for validators without other nominators
Browse files Browse the repository at this point in the history
  • Loading branch information
youPickItUp committed Oct 23, 2024
1 parent ed1b57f commit e9de768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/page-staking/src/useSortedTargets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function extractSingle (api: ApiPromise, allAccounts: string[], derive: DeriveSt
const expMeta = (exposureMeta.isSome && exposureMeta.unwrap()) || forwardCompatibleExposureMeta;

// some overrides (e.g. Darwinia Crab) does not have the own/total field in Exposure
let [bondOwn, bondTotal] = exp && expMeta
let [bondOwn, bondTotal] = expMeta
? [expMeta.own.unwrap(), expMeta.total.unwrap()]
: [BN_ZERO, BN_ZERO];

Expand Down

0 comments on commit e9de768

Please sign in to comment.