mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: If null or undefined, dont show button
This commit is contained in:
parent
bdae9b3491
commit
9bbe694ab4
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user