mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
FIX: lnd manage funds crash
This commit is contained in:
parent
1f5b54c8a8
commit
a326f78e7f
@ -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() });
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user