Skip to content

Commit

Permalink
fix: should always go to loading page initially
Browse files Browse the repository at this point in the history
  • Loading branch information
yushih committed Jan 14, 2025
1 parent e4c00f7 commit 842fc8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/yoroi-extension/app/stores/toplevel/LoadingStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ export default class LoadingStore extends BaseLoadingStore<StoresMap> {
}

async loadingEnd(): Promise<void> {
// 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(
Expand Down

0 comments on commit 842fc8c

Please sign in to comment.