Merge branch 'master' into strg

This commit is contained in:
marcosrdz 2020-06-04 08:36:04 -04:00
commit a8c00f6779
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;
}