FIX: If null or undefined, dont show button

This commit is contained in:
Marcos Rodriguez Vélez 2021-09-30 12:05:51 -04:00
parent bdae9b3491
commit 9bbe694ab4
No known key found for this signature in database
GPG Key ID: 0D64671698D11C5C

View File

@ -355,11 +355,11 @@ export class LightningCustodianWallet extends LegacyWallet {
}
async allowOnchainAddress() {
if (this.getAddress() !== undefined) {
if (this.getAddress() !== undefined && this.getAddress() !== null) {
return true;
} else {
await this.fetchBtcAddress();
return this.getAddress() !== undefined;
return this.getAddress() !== undefined && this.getAddress() !== null;
}
}