diff --git a/src/views/SoraCard.vue b/src/views/SoraCard.vue index 18a94fcc4..9404a2e8b 100644 --- a/src/views/SoraCard.vue +++ b/src/views/SoraCard.vue @@ -130,14 +130,14 @@ export default class SoraCard extends Mixins(mixins.LoadingMixin, SubscriptionsM this.subscribeToTotalXorBalance(); } - created(): void { + async created(): Promise { + await this.withApi(this.handleAccountChange); + const refreshToken = localStorage.getItem('PW-refresh-token'); if (this.source === WALLET_CONSTS.AppWallet.FearlessWallet && refreshToken) { (window as WindowInjectedWeb3).injectedWeb3?.['fearless-wallet']?.saveSoraCardToken?.(refreshToken); } - - this.withApi(this.handleAccountChange); } async beforeRouteUpdate(to: Route, from: Route, next: NavigationGuardNext): Promise {