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', text: 'Pay',
onPress: () => { onPress: () => {
console.log('OK Pressed'); console.log('OK Pressed');
this.props.navigation.navigate('ScanLndInvoice', { this.props.navigation.navigate('ScanLndInvoiceRoot', {
uri: json.sendPayment, screen: 'ScanLndInvoice',
fromSecret: this.state.fromSecret, params: {
uri: json.sendPayment,
fromSecret: this.state.fromSecret,
},
}); });
}, },
}, },

View file

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