mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
FIX: navigation back from wallet selector (closes #6109)
This commit is contained in:
parent
cb7ea8935e
commit
d83c8feaff
2 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@ function scanQrHelper(
|
||||||
|
|
||||||
params.onBarScanned = function (data: any) {
|
params.onBarScanned = function (data: any) {
|
||||||
setTimeout(() => resolve(data.data || data), 1);
|
setTimeout(() => resolve(data.data || data), 1);
|
||||||
navigateFunc(currentScreenName);
|
|
||||||
navigateFunc({ name: currentScreenName, params: {}, merge: true });
|
navigateFunc({ name: currentScreenName, params: {}, merge: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
import { AbstractWallet } from '../class';
|
import { AbstractWallet } from '../class';
|
||||||
|
|
||||||
module.exports = function (
|
module.exports = function (
|
||||||
navigateFunc: (scr: string, params?: any) => void,
|
navigateFunc: (scr: string | any, params?: any) => void,
|
||||||
currentScreenName: string,
|
currentScreenName: string,
|
||||||
chainType: string | null,
|
chainType: string | null,
|
||||||
availableWallets?: AbstractWallet[],
|
availableWallets?: AbstractWallet[],
|
||||||
|
@ -40,7 +40,7 @@ module.exports = function (
|
||||||
|
|
||||||
setTimeout(() => resolve(selectedWallet), 1);
|
setTimeout(() => resolve(selectedWallet), 1);
|
||||||
console.warn('trying to navigate back to', currentScreenName);
|
console.warn('trying to navigate back to', currentScreenName);
|
||||||
navigateFunc(currentScreenName);
|
navigateFunc({ name: currentScreenName, params: {}, merge: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
navigateFunc('SelectWallet', params);
|
navigateFunc('SelectWallet', params);
|
||||||
|
|
Loading…
Add table
Reference in a new issue