1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-27 12:36:14 +01:00

dont async refresh and sync

This commit is contained in:
Kyle Spearrin 2018-08-08 13:44:01 -04:00
parent 33cf77559f
commit 6cef5e614d

View File

@ -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');