From 02339031363af8ca98253d2dc29a9886b6b46b2b Mon Sep 17 00:00:00 2001 From: Overtorment Date: Thu, 4 Jun 2020 13:17:56 +0100 Subject: [PATCH] FIX: broken stuff after rnav5 (related #1185) --- screen/lnd/browser.js | 9 ++++++--- screen/lnd/scanLndInvoice.js | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/screen/lnd/browser.js b/screen/lnd/browser.js index 4bf0c75ec..03e8c0c9d 100644 --- a/screen/lnd/browser.js +++ b/screen/lnd/browser.js @@ -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, + }, }); }, }, diff --git a/screen/lnd/scanLndInvoice.js b/screen/lnd/scanLndInvoice.js index e9d52d3a5..c8fc8bebb 100644 --- a/screen/lnd/scanLndInvoice.js +++ b/screen/lnd/scanLndInvoice.js @@ -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; }