From 3bde013af1a27f8321dc561466119aabe8f12d88 Mon Sep 17 00:00:00 2001
From: Ankur Banerjee <ankurdotb@users.noreply.github.com>
Date: Wed, 15 May 2024 15:14:32 +0100
Subject: [PATCH] Update balance.ts

---
 src/helpers/balance.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/helpers/balance.ts b/src/helpers/balance.ts
index 108223e..d7d7d4c 100644
--- a/src/helpers/balance.ts
+++ b/src/helpers/balance.ts
@@ -8,11 +8,11 @@ export async function fetchAccountBalances(address: string): Promise<AccountBala
 	const available_balance = await node_api.getAvailableBalance(address);
 
 	// Filter the balances to find the one with denom 'ncheq'
-	const ncheqBalance = available_balance.find(balance => balance.denom === 'ncheq');
+	const ncheqBalance = available_balance.find((balance) => balance.denom === 'ncheq');
 
 	let available_balance_in_ncheq = 0;
 	if (available_balance.length > 0) {
-		available_balance_in_ncheq = ncheqBalance ? Number(ncheqBalance.amount) : 0;;
+		available_balance_in_ncheq = ncheqBalance ? Number(ncheqBalance.amount) : 0;
 	}
 
 	const reward_balance_in_ncheq = await node_api.distributionGetRewards(address);