From bf2c6ccf88021aadd8ea46eeed29342e6da7ba3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Fri, 8 Mar 2024 16:56:18 +0100 Subject: [PATCH] fix style --- src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx index f0232b6df075..ee3934cacc06 100644 --- a/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx +++ b/src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx @@ -60,10 +60,11 @@ function WorkspaceWorkflowsPage({policy, betas, route}: WorkspaceWorkflowsPagePr title: translate('workflowsPage.delaySubmissionTitle'), subtitle: translate('workflowsPage.delaySubmissionDescription'), onToggle: (isEnabled: boolean) => { - const frequency = policy?.autoReportingFrequency === CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT || !policy?.autoReportingFrequency - ? CONST.POLICY.AUTO_REPORTING_FREQUENCIES.WEEKLY - : policy.autoReportingFrequency; - Policy.setWorkspaceAutoReporting(route.params.policyID, isEnabled, frequency); + const frequency = + policy?.autoReportingFrequency === CONST.POLICY.AUTO_REPORTING_FREQUENCIES.INSTANT || !policy?.autoReportingFrequency + ? CONST.POLICY.AUTO_REPORTING_FREQUENCIES.WEEKLY + : policy.autoReportingFrequency; + Policy.setWorkspaceAutoReporting(route.params.policyID, isEnabled, frequency); }, subMenuItems: (