From 105c261eb35696a4bbbe99d33d66482ee07c8a70 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 21 Mar 2022 15:27:07 +0000 Subject: round bank balance amount --- src/cleaners/skyblock/bank.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cleaners/skyblock/bank.ts b/src/cleaners/skyblock/bank.ts index dd18c24..c0badc4 100644 --- a/src/cleaners/skyblock/bank.ts +++ b/src/cleaners/skyblock/bank.ts @@ -1,5 +1,5 @@ export interface Bank { - balance: number + balance?: number history: BankHistoryItem[] } @@ -32,7 +32,7 @@ export function cleanBank(data: any): Bank { history.reverse() return { - balance: data?.banking?.balance ?? 0, + balance: data?.banking?.balance ? Math.round(data.banking.balance * 10) / 10 : undefined, history } } \ No newline at end of file -- cgit