Skip to content

Commit

Permalink
amounts calculate for multiple transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
anyxem committed Jan 31, 2024
1 parent 1a715a6 commit 7bdee6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/API/Mintlayer/Mintlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export const getWalletBalance = async (addresses) => {
const totalBalance = balances.reduce(
(acc, curr) => {
return {
balanceInAtoms: acc.balanceInAtoms + curr.balanceInAtoms,
balanceInAtoms:
+parseInt(acc.balanceInAtoms) + parseInt(curr.balanceInAtoms),
}
},
{ balanceInAtoms: 0 },
Expand Down

0 comments on commit 7bdee6a

Please sign in to comment.