From 842fc8c84a66a766592139533b6b98300edbc6ee Mon Sep 17 00:00:00 2001 From: yushi Date: Wed, 15 Jan 2025 01:13:59 +0800 Subject: [PATCH] fix: should always go to loading page initially --- packages/yoroi-extension/app/stores/toplevel/LoadingStore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/yoroi-extension/app/stores/toplevel/LoadingStore.js b/packages/yoroi-extension/app/stores/toplevel/LoadingStore.js index 6075cb28ae..a84c4f9d54 100644 --- a/packages/yoroi-extension/app/stores/toplevel/LoadingStore.js +++ b/packages/yoroi-extension/app/stores/toplevel/LoadingStore.js @@ -66,14 +66,15 @@ export default class LoadingStore extends BaseLoadingStore { } async loadingEnd(): Promise { - // before redirecting, save origin route in case we need to come back to - // it later (this is the case when user comes from a URI link) + // Save the landing route and go to the route that shows the loading screen runInAction(() => { this._originRoute = { route: this.stores.app.currentRoute, location: window.location.href, }; }); + this.stores.app.goToRoute({ route: ROUTES.ROOT }); + if (this.fromUriScheme) { const networkId = networks.CardanoMainnet.NetworkId; const cardanoMeta = defaultAssets.filter(