From 512fa36bb6f8ef410bf5554daba949798a69777e Mon Sep 17 00:00:00 2001 From: c3024 Date: Sat, 26 Oct 2024 14:54:21 +0530 Subject: [PATCH] use existing param engagementChoice --- src/libs/actions/Report.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 35e4c9b75ae1..d6eb2473e2aa 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -105,7 +105,6 @@ import type { ReportActionReactions, ReportUserIsTyping, } from '@src/types/onyx'; -import type IntroSelected from '@src/types/onyx/IntroSelected'; import type {Decision} from '@src/types/onyx/OriginalMessage'; import type {ConnectionName} from '@src/types/onyx/Policy'; import type Report from '@src/types/onyx/Report'; @@ -274,13 +273,6 @@ Onyx.connect({ callback: (value) => (allReportDraftComments = value), }); -let introSelected: IntroSelected | undefined = {}; - -Onyx.connect({ - key: ONYXKEYS.NVP_INTRO_SELECTED, - callback: (val) => (introSelected = val), -}); - let environmentURL: string; Environment.getEnvironmentURL().then((url: string) => (environmentURL = url)); @@ -3394,7 +3386,7 @@ function completeOnboarding( workspaceCategoriesLink: `${environmentURL}/${ROUTES.WORKSPACE_CATEGORIES.getRoute(onboardingPolicyID ?? '-1')}`, workspaceMembersLink: `${environmentURL}/${ROUTES.WORKSPACE_MEMBERS.getRoute(onboardingPolicyID ?? '-1')}`, workspaceMoreFeaturesLink: `${environmentURL}/${ROUTES.WORKSPACE_MORE_FEATURES.getRoute(onboardingPolicyID ?? '-1')}`, - navatticURL: getNavatticURL(environment, introSelected?.choice), + navatticURL: getNavatticURL(environment, engagementChoice), }) : task.description; const currentTask = ReportUtils.buildOptimisticTaskReport(