Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vkulinich-cl committed Jun 6, 2024
1 parent bf08b90 commit bc8cb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc8cb19

Please sign in to comment.