mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-20 02:09:10 +01:00
FIX: Hide modal when scanning
This commit is contained in:
parent
a1505e0974
commit
543e38f89b
@ -311,7 +311,6 @@ const WalletsAddMultisigStep2 = () => {
|
||||
};
|
||||
|
||||
const onBarScanned = ret => {
|
||||
setIsProvideMnemonicsModalVisible(false);
|
||||
if (!isDesktop) navigation.dangerouslyGetParent().pop();
|
||||
if (!ret.data) ret = { data: ret };
|
||||
if (ret.data.toUpperCase().startsWith('UR')) {
|
||||
@ -322,7 +321,7 @@ const WalletsAddMultisigStep2 = () => {
|
||||
} else {
|
||||
let cosigner = new MultisigCosigner(ret.data);
|
||||
if (!cosigner.isValid()) return alert(loc.multisig.invalid_cosigner);
|
||||
|
||||
setIsProvideMnemonicsModalVisible(false);
|
||||
if (cosigner.howManyCosignersWeHave() > 1) {
|
||||
// lets look for the correct cosigner. thats probably gona be the one with specific corresponding path,
|
||||
// for example m/48'/0'/0'/2' if user chose to setup native segwit in BW
|
||||
@ -390,8 +389,9 @@ const WalletsAddMultisigStep2 = () => {
|
||||
|
||||
const scanOrOpenFile = () => {
|
||||
if (isDesktop) {
|
||||
fs.showActionSheet().then(data => onBarScanned({ data }));
|
||||
fs.showActionSheet().then(onBarScanned);
|
||||
} else {
|
||||
setIsProvideMnemonicsModalVisible(false);
|
||||
navigation.navigate('ScanQRCodeRoot', {
|
||||
screen: 'ScanQRCode',
|
||||
params: {
|
||||
|
Loading…
Reference in New Issue
Block a user