FIX: navigation back from wallet selector (closes #6109)

This commit is contained in:
overtorment 2024-02-08 21:40:18 +00:00
parent cb7ea8935e
commit d83c8feaff
2 changed files with 2 additions and 3 deletions

View file

@ -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 });
};

View file

@ -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);