1
0
mirror of https://github.com/bitwarden/web synced 2025-12-12 14:23:18 +00:00

dont refresh token and sync at same time

This commit is contained in:
Kyle Spearrin
2018-08-08 13:41:39 -04:00
parent b5085d8004
commit 33cf77559f
2 changed files with 3 additions and 5 deletions

2
jslib

Submodule jslib updated: 3429b57db4...4ca7a9709e

View File

@@ -161,10 +161,8 @@ export class CreateOrganizationComponent implements OnInit {
} }
async finalize(orgId: string) { async finalize(orgId: string) {
await Promise.all([ await this.apiService.refreshIdentityToken();
this.apiService.refreshIdentityToken(), await this.syncService.fullSync(true);
this.syncService.fullSync(true),
]);
this.analytics.eventTrack.next({ action: 'Created Organization' }); this.analytics.eventTrack.next({ action: 'Created Organization' });
this.toasterService.popAsync('success', this.i18nService.t('organizationCreated'), this.toasterService.popAsync('success', this.i18nService.t('organizationCreated'),
this.i18nService.t('organizationReadyToGo')); this.i18nService.t('organizationReadyToGo'));