diff --git a/libs/common/src/platform/services/state.service.ts b/libs/common/src/platform/services/state.service.ts index 740afe5592..041b57d949 100644 --- a/libs/common/src/platform/services/state.service.ts +++ b/libs/common/src/platform/services/state.service.ts @@ -1554,13 +1554,11 @@ export class StateService< } async getAutoFillOverlayVisibility(options?: StorageOptions): Promise { - return ( - ( - await this.getGlobals( - this.reconcileOptions(options, await this.defaultOnDiskLocalOptions()), - ) - )?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.OnFieldFocus - ); + const locallyStoredOptions = await this.defaultOnDiskLocalOptions(); + const reconciledOptions = this.reconcileOptions(options, locallyStoredOptions); + const globals = await this.getGlobals(reconciledOptions); + + return globals?.autoFillOverlayVisibility ?? AutofillOverlayVisibility.Off; } async setAutoFillOverlayVisibility(value: number, options?: StorageOptions): Promise {