Skip to content

Commit

Permalink
fix(tangle-share-ui): Correct the args passing to balances.account.multi
Browse files Browse the repository at this point in the history
  • Loading branch information
AtelyPham committed Feb 5, 2025
1 parent 3b1e572 commit ebf94fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libs/tangle-shared-ui/src/data/rewards/useVaultRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const useVaultRewards = () => {
const vaultPotAccountEntries = Array.from(vaultPotAccounts.entries());

return apiRx.query.balances.account
.multi(
vaultPotAccountEntries.map(([, accountId]) => [accountId] as const),
)
.multi(vaultPotAccountEntries.map(([, accountId]) => accountId))
.pipe(
map((balances) => {
return balances.reduce((acc, balance, idx) => {
Expand Down

0 comments on commit ebf94fe

Please sign in to comment.