Skip to content

Commit

Permalink
Refactoring (#1148)
Browse files Browse the repository at this point in the history
* refactoring

* await, fix types
  • Loading branch information
MaksimBaranov98 authored Aug 31, 2023
1 parent 9abf901 commit 6945bcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/SoraCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ export default class SoraCard extends Mixins(mixins.LoadingMixin, SubscriptionsM
this.subscribeToTotalXorBalance();
}
created(): void {
async created(): Promise<void> {
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<Vue>): Promise<void> {
Expand Down

0 comments on commit 6945bcd

Please sign in to comment.