diff --git a/libs/angular/src/key-management/encrypted-migration/encrypted-migrations-scheduler.service.ts b/libs/angular/src/key-management/encrypted-migration/encrypted-migrations-scheduler.service.ts index bbe0d6116f5..99ec9adb6a7 100644 --- a/libs/angular/src/key-management/encrypted-migration/encrypted-migrations-scheduler.service.ts +++ b/libs/angular/src/key-management/encrypted-migration/encrypted-migrations-scheduler.service.ts @@ -68,7 +68,7 @@ export class DefaultEncryptedMigrationsSchedulerService userIds.map((userId) => combineLatest([ this.authService.authStatusFor$(userId), - this.syncService.lastSync$(userId), + this.syncService.lastSync$(userId).pipe(filter(lastSync => lastSync != null)), ]).pipe( filter(([authStatus]) => authStatus === AuthenticationStatus.Unlocked), map(([, lastSync]) => ({ userId, lastSync }) as UserSyncData),