Skip to content

Commit

Permalink
Merge pull request ZeusLN#1450 from kaloudis/bugfix-lndhub-balance-re…
Browse files Browse the repository at this point in the history
…fresh

Bug fix: LNDHub: allow balance refresh
  • Loading branch information
kaloudis committed May 3, 2023
2 parents e1852e4 + ea2be40 commit 018a74c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stores/BalanceStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions views/Wallet/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ export default class Wallet extends React.Component<WalletProps, WalletState> {
await login({ login: username, password }).then(async () => {
BalanceStore.getLightningBalance(true);
});
} else {
BalanceStore.getLightningBalance(true);
}
} else if (implementation === 'lightning-node-connect') {
let error;
Expand Down

0 comments on commit 018a74c

Please sign in to comment.