Skip to content

Commit

Permalink
use existing param engagementChoice
Browse files Browse the repository at this point in the history
  • Loading branch information
c3024 committed Oct 26, 2024
1 parent ef6a0c4 commit 512fa36
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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));

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 512fa36

Please sign in to comment.