From bc8cb1901eb9c99e7cbad9c960a82baa8aca6e30 Mon Sep 17 00:00:00 2001 From: vkulinich Date: Thu, 6 Jun 2024 11:59:40 +0200 Subject: [PATCH] wip --- src/api/staking.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/staking.ts b/src/api/staking.ts index 765d88200..d950c7238 100644 --- a/src/api/staking.ts +++ b/src/api/staking.ts @@ -357,8 +357,8 @@ export const usePositionVotesIds = () => { return useMutation(async (positionId: number) => { const positionVotesRes = await api.query.staking.positionVotes(positionId) - const positionVotesIds = positionVotesRes.votes.map((position) => - position[0].toString(), + const positionVotesIds = positionVotesRes.votes.map(([position]) => + position.toString(), ) return positionVotesIds