From 9a10ae1bb7feda40a01c5541236cf06170cad693 Mon Sep 17 00:00:00 2001 From: Danny Morabito Date: Thu, 17 Jul 2025 20:52:44 +0200 Subject: [PATCH] don't fail loading if the cashu mint is offline, or otherwise unreacheable --- index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index b5d7753..edbd88f 100644 --- a/index.ts +++ b/index.ts @@ -116,8 +116,10 @@ export default class PortalBtcWallet { }, }); await this.cashuSDK.init(() => this.emitEvent("balanceUpdated")); - await this.redeemCashuQuotes(); - await this.maybeMelt(); + try { + await this.redeemCashuQuotes(); + await this.maybeMelt(); + } catch {} } private async refreshBreezBalances() {