From a16a2b33669b62beefc6b679bb2e89abb971fbe7 Mon Sep 17 00:00:00 2001 From: Colton Hurst Date: Wed, 30 Jul 2025 11:03:43 -0400 Subject: [PATCH] [PM-22789] Move userId into windows conditional check --- .../src/autofill/services/desktop-autotype.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/autofill/services/desktop-autotype.service.ts b/apps/desktop/src/autofill/services/desktop-autotype.service.ts index f6993821d40..1f0cab9766a 100644 --- a/apps/desktop/src/autofill/services/desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autotype.service.ts @@ -47,9 +47,11 @@ export class DesktopAutotypeService { } async init() { - const userId = await firstValueFrom(this.accountService.activeAccount$.pipe(map((a) => a?.id))); - if (this.platformUtilsService.getDevice() === DeviceType.WindowsDesktop) { + const userId = await firstValueFrom( + this.accountService.activeAccount$.pipe(map((a) => a?.id)), + ); + this.autotypeEnabled$ = combineLatest([ this.autotypeEnabledState.state$, this.configService.getFeatureFlag$(FeatureFlag.WindowsDesktopAutotype),