mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +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'),
|
launchedBy = useNavigationParam('launchedBy'),
|
||||||
}) => {
|
}) => {
|
||||||
const [isLoading, setIsLoading] = useState(false);
|
const [isLoading, setIsLoading] = useState(false);
|
||||||
const { navigate } = useNavigation();
|
const { navigate, goBack } = useNavigation();
|
||||||
|
|
||||||
const onBarCodeRead = ret => {
|
const onBarCodeRead = ret => {
|
||||||
if (!isLoading && !cameraPreviewIsPaused) {
|
if (!isLoading && !cameraPreviewIsPaused) {
|
||||||
|
@ -62,7 +62,7 @@ const ScanQRCode = ({
|
||||||
right: 16,
|
right: 16,
|
||||||
top: 64,
|
top: 64,
|
||||||
}}
|
}}
|
||||||
onPress={() => navigate(launchedBy)}
|
onPress={() => launchedBy ? navigate(launchedBy) : goBack(null) }
|
||||||
>
|
>
|
||||||
<Image style={{ alignSelf: 'center' }} source={require('../../img/close-white.png')} />
|
<Image style={{ alignSelf: 'center' }} source={require('../../img/close-white.png')} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|
Loading…
Add table
Reference in a new issue