Skip to content

Commit

Permalink
message subscription fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Oct 29, 2024
1 parent 67fca8e commit a2876d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/yoroi-extension/app/stores/toplevel/ProfileStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,15 @@ export default class ProfileStore extends BaseProfileStore<StoresMap, ActionsMap
action: async () => {
const { wallets } = this.stores;

await subscribe();

// note: we want to load memos BEFORE we start syncing wallets
// this is because syncing wallets will also try and sync memos with external storage
await this.stores.memos.loadFromStorage();
await this.stores.tokenInfoStore.refreshTokenInfo();
await this.stores.coinPriceStore.loadFromStorage();

await wallets.restoreWalletsFromStorage();
subscribe();
if (wallets.hasAnyWallets && this.stores.loading.fromUriScheme) {
this.actions.router.goToRoute.trigger({ route: ROUTES.SEND_FROM_URI.ROOT });
} else {
Expand Down

0 comments on commit a2876d0

Please sign in to comment.