FIX: lnurl scan to receive is not returning the correct view (closes #828)

This commit is contained in:
Overtorment 2020-02-27 14:41:44 +00:00
parent efa1c52878
commit 84938c655e
2 changed files with 2 additions and 1 deletions

View file

@ -210,7 +210,7 @@ export default class LNDCreateInvoice extends Component {
<TouchableOpacity
disabled={this.state.isLoading}
onPress={() => {
NavigationService.navigate('ScanQrAddress', { onBarScanned: this.processLnurl });
NavigationService.navigate('ScanQrAddress', { onBarScanned: this.processLnurl, launchedBy: this.props.navigation.state.routeName });
Keyboard.dismiss();
}}
style={{

View file

@ -14,6 +14,7 @@ const ScanQRCode = ({
showCloseButton = true,
launchedBy = useNavigationParam('launchedBy'),
}) => {
if (!launchedBy || !onBarScanned) console.warn('Necessary params missing');
const [isLoading, setIsLoading] = useState(false);
const { navigate, goBack } = useNavigation();