Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
csoreff committed Mar 11, 2024
1 parent 343dbd0 commit 1a3af10
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/services/lite/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ export const calculateWeightXTZ = (choice: Choice, totalXTZ: number) => {
}

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

export const calculateProposalTotal = (choices: Choice[], decimals: any) => {
Expand Down

0 comments on commit 1a3af10

Please sign in to comment.