Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
dont async refresh and sync
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Aug 8, 2018
1 parent 33cf775 commit 6cef5e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/settings/premium.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,8 @@ export class PremiumComponent implements OnInit {
}

async finalizePremium() {
await Promise.all([
this.apiService.refreshIdentityToken(),
this.syncService.fullSync(true),
]);
await this.apiService.refreshIdentityToken();
await this.syncService.fullSync(true);
this.analytics.eventTrack.next({ action: 'Signed Up Premium' });
this.toasterService.popAsync('success', null, this.i18nService.t('premiumUpdated'));
this.messagingService.send('purchasedPremium');
Expand Down

0 comments on commit 6cef5e6

Please sign in to comment.