mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-30 13:03:53 +01:00
dont async refresh and sync
This commit is contained in:
parent
33cf77559f
commit
6cef5e614d
@ -87,10 +87,8 @@ export class PremiumComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async finalizePremium() {
|
async finalizePremium() {
|
||||||
await Promise.all([
|
await this.apiService.refreshIdentityToken();
|
||||||
this.apiService.refreshIdentityToken(),
|
await this.syncService.fullSync(true);
|
||||||
this.syncService.fullSync(true),
|
|
||||||
]);
|
|
||||||
this.analytics.eventTrack.next({ action: 'Signed Up Premium' });
|
this.analytics.eventTrack.next({ action: 'Signed Up Premium' });
|
||||||
this.toasterService.popAsync('success', null, this.i18nService.t('premiumUpdated'));
|
this.toasterService.popAsync('success', null, this.i18nService.t('premiumUpdated'));
|
||||||
this.messagingService.send('purchasedPremium');
|
this.messagingService.send('purchasedPremium');
|
||||||
|
Loading…
Reference in New Issue
Block a user