From 6d5d72efacfdefc66ef27003b0ef994b6c7ccbdb Mon Sep 17 00:00:00 2001 From: neuronull <9162534+neuronull@users.noreply.github.com> Date: Mon, 3 Nov 2025 10:49:03 -0700 Subject: [PATCH] re-add distinctUntilChanged --- .../desktop/src/autofill/services/desktop-autotype.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/desktop/src/autofill/services/desktop-autotype.service.ts b/apps/desktop/src/autofill/services/desktop-autotype.service.ts index d3e753bf55a..0da23beadda 100644 --- a/apps/desktop/src/autofill/services/desktop-autotype.service.ts +++ b/apps/desktop/src/autofill/services/desktop-autotype.service.ts @@ -2,6 +2,7 @@ import { Injectable, OnDestroy } from "@angular/core"; import { combineLatest, concatMap, + distinctUntilChanged, filter, firstValueFrom, map, @@ -88,6 +89,7 @@ export class DesktopAutotypeService implements OnDestroy { ) { this.autotypeEnabledUserSetting$ = this.autotypeEnabledState.state$.pipe( map((enabled) => enabled ?? false), + distinctUntilChanged(), // Only emit when the boolean result changes takeUntil(this.destroy$), ); @@ -96,6 +98,7 @@ export class DesktopAutotypeService implements OnDestroy { switchMap((account) => this.billingAccountProfileStateService.hasPremiumFromAnySource$(account.id), ), + distinctUntilChanged(), // Only emit when the boolean result changes takeUntil(this.destroy$), ); @@ -190,6 +193,7 @@ export class DesktopAutotypeService implements OnDestroy { authStatus === AuthenticationStatus.Unlocked && isPremiumAcct, ), + distinctUntilChanged(), // Only emit when the boolean result changes takeUntil(this.destroy$), ); }