diff --git a/src/app/app.component.ts b/src/app/app.component.ts index bedab39c..3c4ba213 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -434,6 +434,10 @@ export class AppComponent implements OnInit { } private async logOut(expired: boolean, userId?: string) { + if (!userId) { + userId = await this.stateService.getUserId(); + } + await Promise.all([ this.eventService.uploadEvents(userId), this.syncService.setLastSync(new Date(0), userId),