Skip to content

Commit

Permalink
const to let
Browse files Browse the repository at this point in the history
  • Loading branch information
csoreff committed Mar 11, 2024
1 parent c4885a0 commit b753227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/lite/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ export const calculateWeightXTZ = (choice: Choice, totalXTZ: BigNumber) => {

export const calculateXTZTotal = (choices: Choice[] | undefined) => {
let totalXTZ = new BigNumber(0)
let choiceTotal = new BigNumber(0)
if (choices) {
choices.forEach((choice: Choice) => {
const choiceTotal = choice.walletAddresses.reduce(
choiceTotal = choice.walletAddresses.reduce(
(total: BigNumber, walletAddress: WalletAddress) =>
total.plus(new BigNumber(walletAddress.balanceAtReferenceBlock)),
new BigNumber(0)
Expand Down

0 comments on commit b753227

Please sign in to comment.