mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +01:00
FIX: Crash on scan in wallets import when closing the view
This commit is contained in:
parent
a3954ecc4b
commit
a7e0766612
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ const ScanQRCode = ({
|
|||
launchedBy = useNavigationParam('launchedBy'),
|
||||
}) => {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const { navigate } = useNavigation();
|
||||
const { navigate, goBack } = useNavigation();
|
||||
|
||||
const onBarCodeRead = ret => {
|
||||
if (!isLoading && !cameraPreviewIsPaused) {
|
||||
|
@ -62,7 +62,7 @@ const ScanQRCode = ({
|
|||
right: 16,
|
||||
top: 64,
|
||||
}}
|
||||
onPress={() => navigate(launchedBy)}
|
||||
onPress={() => launchedBy ? navigate(launchedBy) : goBack(null) }
|
||||
>
|
||||
<Image style={{ alignSelf: 'center' }} source={require('../../img/close-white.png')} />
|
||||
</TouchableOpacity>
|
||||
|
|
Loading…
Add table
Reference in a new issue