From a326f78e7f3653df4efb095ca98586cf381dc0f6 Mon Sep 17 00:00:00 2001 From: Overtorment Date: Tue, 9 Oct 2018 19:48:32 +0100 Subject: [PATCH] FIX: lnd manage funds crash --- screen/wallets/transactions.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/screen/wallets/transactions.js b/screen/wallets/transactions.js index e609a4e98..95caa22c9 100644 --- a/screen/wallets/transactions.js +++ b/screen/wallets/transactions.js @@ -335,15 +335,8 @@ export default class WalletTransactions extends Component { { - let walletIndex = 0; - - let c = 0; - for (let w of BlueApp.getWallets()) { - if (c++ === walletIndex) { - console.log('navigating to', w.getLabel()); - navigate('ManageFunds', { fromSecret: w.getSecret() }); - } - } + console.log('navigating to', this.state.wallet.getLabel()); + navigate('ManageFunds', { fromSecret: this.state.wallet.getSecret() }); }} > {loc.lnd.title} @@ -494,6 +487,7 @@ export default class WalletTransactions extends Component { return ( { + console.log('navigating to', this.state.wallet.getLabel()); navigate('ManageFunds', { fromSecret: this.state.wallet.getSecret() }); }} />