FIX: There is a bug when using the scanning function when creating a …
This commit is contained in:
GLaDOS 2024-01-07 16:25:49 +00:00 committed by GitHub
commit 84f992ab60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ import { encodeUR } from '../../blue_modules/ur';
import QRCodeComponent from '../../components/QRCodeComponent';
import alert from '../../components/Alert';
import confirm from '../../helpers/confirm';
import { requestCameraAuthorization } from '../../helpers/scan-qr';
import { scanQrHelper } from '../../helpers/scan-qr';
import { useTheme } from '../../components/themes';
import Button from '../../components/Button';
import triggerHapticFeedback, { HapticFeedbackTypes } from '../../blue_modules/hapticFeedback';
@ -462,15 +462,7 @@ const WalletsAddMultisigStep2 = () => {
} else {
setIsProvideMnemonicsModalVisible(false);
InteractionManager.runAfterInteractions(() =>
requestCameraAuthorization().then(() =>
navigation.navigate('ScanQRCodeRoot', {
screen: 'ScanQRCode',
params: {
onBarScanned,
showFileImportButton: true,
},
}),
),
scanQrHelper(navigation.navigate, onBarScanned)
);
}
};