diff --git a/packages/app-staking/src/index.tsx b/packages/app-staking/src/index.tsx index 2158cdbc24..01810b26ef 100644 --- a/packages/app-staking/src/index.tsx +++ b/packages/app-staking/src/index.tsx @@ -39,7 +39,7 @@ function StakingApp ({ basePath, className }: Props): React.ReactElement transform: ([stashes]: [AccountId[]]): string[] => stashes.map((accountId): string => accountId.toString()) }) as string[]; - const recentlyOnline = useCall(api.derive.imOnline.receivedHeartbeats, []); + const recentlyOnline = useCall(api.derive.imOnline?.receivedHeartbeats, []); const stakingOverview = useCall(api.derive.staking.overview, []); const sessionRewards = useSessionRewards(MAX_SESSIONS); const hasQueries = hasAccounts && !!(api.query.imOnline?.authoredBlocks);