Skip to content

Commit

Permalink
convert string to number
Browse files Browse the repository at this point in the history
  • Loading branch information
csoreff committed Mar 11, 2024
1 parent 9c5c2ad commit 98dafaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/lite/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export const calculateXTZTotal = (choices: Choice[] | undefined) => {
if (choices) {
choices.map((choice: Choice) => {
totalXTZ = choice.walletAddresses.reduce(
(total: number, walletAddress: WalletAddress) => total + walletAddress.balanceAtReferenceBlock,
(total: number, walletAddress: WalletAddress) => total + new BigNumber(walletAddress.balanceAtReferenceBlock),
0
)
})
Expand Down

0 comments on commit 98dafaf

Please sign in to comment.