FIX: lnd manage funds crash

This commit is contained in:
Overtorment 2018-10-09 19:48:32 +01:00
parent 1f5b54c8a8
commit a326f78e7f

View File

@ -335,15 +335,8 @@ export default class WalletTransactions extends Component {
<TouchableOpacity
style={{ alignSelf: 'flex-end', right: 10, flexDirection: 'row' }}
onPress={() => {
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() });
}}
>
<BlueText style={{ fontWeight: '600', fontSize: 16 }}>{loc.lnd.title}</BlueText>
@ -494,6 +487,7 @@ export default class WalletTransactions extends Component {
return (
<ManageFundsBigButton
onPress={() => {
console.log('navigating to', this.state.wallet.getLabel());
navigate('ManageFunds', { fromSecret: this.state.wallet.getSecret() });
}}
/>