From 1a3af10f600c41ee89a7e9290629f1cfb96501db Mon Sep 17 00:00:00 2001 From: Corey Soreff Date: Mon, 11 Mar 2024 19:50:44 +0900 Subject: [PATCH] lint --- src/services/lite/utils.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/services/lite/utils.ts b/src/services/lite/utils.ts index 864e723e..575f84c8 100644 --- a/src/services/lite/utils.ts +++ b/src/services/lite/utils.ts @@ -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) => {