FIX: broken stuff after rnav5 (related #1185)

This commit is contained in:
Overtorment 2020-06-04 13:17:56 +01:00
parent 71c8b74e92
commit 0233903136
2 changed files with 7 additions and 4 deletions

View file

@ -349,9 +349,12 @@ export default class Browser extends Component {
text: 'Pay',
onPress: () => {
console.log('OK Pressed');
this.props.navigation.navigate('ScanLndInvoice', {
uri: json.sendPayment,
fromSecret: this.state.fromSecret,
this.props.navigation.navigate('ScanLndInvoiceRoot', {
screen: 'ScanLndInvoice',
params: {
uri: json.sendPayment,
fromSecret: this.state.fromSecret,
},
});
},
},

View file

@ -208,7 +208,7 @@ export default class ScanLndInvoice extends React.Component {
};
async pay() {
if ('decoded' in this.state) {
if (!('decoded' in this.state)) {
return null;
}