diff --git a/stores/BalanceStore.ts b/stores/BalanceStore.ts index 75a4d2ee1..70af31d38 100644 --- a/stores/BalanceStore.ts +++ b/stores/BalanceStore.ts @@ -98,7 +98,7 @@ export default class BalanceStore { }; @action - public getLightningBalance = (set: boolean, reset: boolean) => { + public getLightningBalance = (set: boolean, reset?: boolean) => { this.loadingLightningBalance = true; if (reset) this.resetLightningBalance(); return BackendUtils.getLightningBalance() diff --git a/views/Wallet/Wallet.tsx b/views/Wallet/Wallet.tsx index b38c96552..808704a96 100644 --- a/views/Wallet/Wallet.tsx +++ b/views/Wallet/Wallet.tsx @@ -244,6 +244,8 @@ export default class Wallet extends React.Component { await login({ login: username, password }).then(async () => { BalanceStore.getLightningBalance(true); }); + } else { + BalanceStore.getLightningBalance(true); } } else if (implementation === 'lightning-node-connect') { let error;