mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-15 11:59:21 +01:00
OPS: Lint fix
This commit is contained in:
parent
c87ae6f7ec
commit
2e35bd7283
2 changed files with 7 additions and 5 deletions
|
@ -268,7 +268,7 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||||
|
|
||||||
this._execInBackground(this.reestablishChannels);
|
this._execInBackground(this.reestablishChannels);
|
||||||
if (this.timeToCheckBlockchain()) this._execInBackground(this.checkBlockchain);
|
if (this.timeToCheckBlockchain()) this._execInBackground(this.checkBlockchain);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
alert('LDK init error: ' + error.message);
|
alert('LDK init error: ' + error.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -491,7 +491,9 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await this.reconnectPeersWithPendingChannels();
|
await this.reconnectPeersWithPendingChannels();
|
||||||
} finally {
|
} catch (error: any) {
|
||||||
|
console.log('fetchTransactions failed');
|
||||||
|
console.log(error.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.getUserInvoices(); // it internally updates paid user invoices
|
await this.getUserInvoices(); // it internally updates paid user invoices
|
||||||
|
@ -673,7 +675,7 @@ export class LightningLdkWallet extends LightningCustodianWallet {
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
await func.call(that);
|
await func.call(that);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
alert('_execInBackground error:' + error.message);
|
alert('_execInBackground error:' + error.message);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
|
@ -273,7 +273,7 @@ const LdkOpenChannel = (props: any) => {
|
||||||
address={remoteHostWithPubkey}
|
address={remoteHostWithPubkey}
|
||||||
isLoading={isLoading}
|
isLoading={isLoading}
|
||||||
inputAccessoryViewID={(BlueDismissKeyboardInputAccessory as any).InputAccessoryViewID}
|
inputAccessoryViewID={(BlueDismissKeyboardInputAccessory as any).InputAccessoryViewID}
|
||||||
onChangeText={(text) => setParams({ remoteHostWithPubkey: text })}
|
onChangeText={text => setParams({ remoteHostWithPubkey: text })}
|
||||||
onBarScanned={onBarScanned}
|
onBarScanned={onBarScanned}
|
||||||
launchedBy={name}
|
launchedBy={name}
|
||||||
/>
|
/>
|
||||||
|
@ -282,7 +282,7 @@ const LdkOpenChannel = (props: any) => {
|
||||||
<ArrowPicker
|
<ArrowPicker
|
||||||
onChange={newKey => {
|
onChange={newKey => {
|
||||||
const nodes = LightningLdkWallet.getPredefinedNodes();
|
const nodes = LightningLdkWallet.getPredefinedNodes();
|
||||||
if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey]});
|
if (nodes[newKey]) setParams({ remoteHostWithPubkey: nodes[newKey] });
|
||||||
}}
|
}}
|
||||||
items={LightningLdkWallet.getPredefinedNodes()}
|
items={LightningLdkWallet.getPredefinedNodes()}
|
||||||
isItemUnknown={!Object.values(LightningLdkWallet.getPredefinedNodes()).some(node => node === remoteHostWithPubkey)}
|
isItemUnknown={!Object.values(LightningLdkWallet.getPredefinedNodes()).some(node => node === remoteHostWithPubkey)}
|
||||||
|
|
Loading…
Add table
Reference in a new issue