Skip to content

Commit

Permalink
views/Wallet: don't unnecessary make FeeStore calls
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Mar 3, 2023
1 parent 1a44876 commit f9c8d5c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions views/Wallet/Wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { themeColor } from './../../utils/ThemeUtils';

import BalanceStore from './../../stores/BalanceStore';
import ChannelsStore from './../../stores/ChannelsStore';
import FeeStore from './../../stores/FeeStore';

import FiatStore from './../../stores/FiatStore';
import NodeInfoStore from './../../stores/NodeInfoStore';
Expand All @@ -56,7 +55,6 @@ interface WalletProps {
navigation: any;
BalanceStore: BalanceStore;
ChannelsStore: ChannelsStore;
FeeStore: FeeStore;
NodeInfoStore: NodeInfoStore;
SettingsStore: SettingsStore;
UnitsStore: UnitsStore;
Expand All @@ -74,7 +72,6 @@ interface WalletState {
'BalanceStore',
'ChannelsStore',
'NodeInfoStore',
'FeeStore',
'SettingsStore',
'UnitsStore',
'FiatStore',
Expand Down Expand Up @@ -216,7 +213,6 @@ export default class Wallet extends React.Component<WalletProps, WalletState> {
NodeInfoStore,
BalanceStore,
ChannelsStore,
FeeStore,
UTXOsStore,
SettingsStore,
PosStore,
Expand Down Expand Up @@ -258,9 +254,6 @@ export default class Wallet extends React.Component<WalletProps, WalletState> {
await BalanceStore.getCombinedBalance();
if (BackendUtils.supportsChannelManagement())
ChannelsStore.getChannels();
if (BackendUtils.supportsRouting()) FeeStore.getFees();
if (BackendUtils.supportsRouting())
FeeStore.getForwardingHistory();
}
} else {
NodeInfoStore.getNodeInfo();
Expand All @@ -270,11 +263,6 @@ export default class Wallet extends React.Component<WalletProps, WalletState> {

await BalanceStore.getCombinedBalance();
ChannelsStore.getChannels();
FeeStore.getFees();
}

if (implementation === 'lnd') {
FeeStore.getForwardingHistory();
}

if (connecting) {
Expand Down

0 comments on commit f9c8d5c

Please sign in to comment.