aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners
diff options
context:
space:
mode:
Diffstat (limited to 'src/cleaners')
-rw-r--r--src/cleaners/skyblock/bank.ts4
1 files changed, 2 insertions, 2 deletions
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