From f52849d15930d0e7574042b650ff79aec46fbf23 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Mon, 1 Apr 2024 16:00:50 -0500 Subject: [PATCH] [PM-6426] Refactoring small detail for how we identify the clear clipboard timeout in SystemService --- libs/common/src/platform/services/system.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common/src/platform/services/system.service.ts b/libs/common/src/platform/services/system.service.ts index dc20beef82..ce40115bb8 100644 --- a/libs/common/src/platform/services/system.service.ts +++ b/libs/common/src/platform/services/system.service.ts @@ -97,7 +97,6 @@ export class SystemService implements SystemServiceAbstraction { } async clearClipboard(clipboardValue: string, timeoutMs: number = null): Promise { - let taskTimeoutInMs = timeoutMs; await this.taskSchedulerService.clearScheduledTask({ taskName: ScheduledTaskNames.systemClearClipboardTimeout, timeoutId: this.clearClipboardTimeout, @@ -107,6 +106,7 @@ export class SystemService implements SystemServiceAbstraction { return; } + let taskTimeoutInMs = timeoutMs; if (!taskTimeoutInMs) { const clearClipboardDelayInSeconds = await firstValueFrom( this.autofillSettingsService.clearClipboardDelay$,