don't fail loading if the cashu mint is offline, or otherwise unreacheable
This commit is contained in:
parent
b194ace128
commit
9a10ae1bb7
1 changed files with 4 additions and 2 deletions
6
index.ts
6
index.ts
|
@ -116,8 +116,10 @@ export default class PortalBtcWallet {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
await this.cashuSDK.init(() => this.emitEvent("balanceUpdated"));
|
await this.cashuSDK.init(() => this.emitEvent("balanceUpdated"));
|
||||||
await this.redeemCashuQuotes();
|
try {
|
||||||
await this.maybeMelt();
|
await this.redeemCashuQuotes();
|
||||||
|
await this.maybeMelt();
|
||||||
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async refreshBreezBalances() {
|
private async refreshBreezBalances() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue