mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-21 14:34:55 +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) {
|
||||
setTimeout(() => resolve(data.data || data), 1);
|
||||
navigateFunc(currentScreenName);
|
||||
navigateFunc({ name: currentScreenName, params: {}, merge: true });
|
||||
};
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
import { AbstractWallet } from '../class';
|
||||
|
||||
module.exports = function (
|
||||
navigateFunc: (scr: string, params?: any) => void,
|
||||
navigateFunc: (scr: string | any, params?: any) => void,
|
||||
currentScreenName: string,
|
||||
chainType: string | null,
|
||||
availableWallets?: AbstractWallet[],
|
||||
|
@ -40,7 +40,7 @@ module.exports = function (
|
|||
|
||||
setTimeout(() => resolve(selectedWallet), 1);
|
||||
console.warn('trying to navigate back to', currentScreenName);
|
||||
navigateFunc(currentScreenName);
|
||||
navigateFunc({ name: currentScreenName, params: {}, merge: true });
|
||||
};
|
||||
|
||||
navigateFunc('SelectWallet', params);
|
||||
|
|
Loading…
Add table
Reference in a new issue