Skip to content

Commit e4c22ec

Browse files
committed
remove references to combinedTrackSubmit
1 parent e6a3e90 commit e4c22ec

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

src/CONST.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const onboardingChoices = {
9090
...backendOnboardingChoices,
9191
} as const;
9292

93-
const combinedTrackSubmitOnboardingChoices = {
93+
const createExpenseOnboardingChoices = {
9494
PERSONAL_SPEND: selectableOnboardingChoices.PERSONAL_SPEND,
9595
EMPLOYER: selectableOnboardingChoices.EMPLOYER,
9696
SUBMIT: backendOnboardingChoices.SUBMIT,
@@ -748,7 +748,6 @@ const CONST = {
748748
PREVENT_SPOTNANA_TRAVEL: 'preventSpotnanaTravel',
749749
REPORT_FIELDS_FEATURE: 'reportFieldsFeature',
750750
NETSUITE_USA_TAX: 'netsuiteUsaTax',
751-
COMBINED_TRACK_SUBMIT: 'combinedTrackSubmit',
752751
PER_DIEM: 'newDotPerDiem',
753752
NEWDOT_MERGE_ACCOUNTS: 'newDotMergeAccounts',
754753
NEWDOT_MANAGER_MCTEST: 'newDotManagerMcTest',
@@ -5157,7 +5156,7 @@ const CONST = {
51575156

51585157
ONBOARDING_CHOICES: {...onboardingChoices},
51595158
SELECTABLE_ONBOARDING_CHOICES: {...selectableOnboardingChoices},
5160-
COMBINED_TRACK_SUBMIT_ONBOARDING_CHOICES: {...combinedTrackSubmitOnboardingChoices},
5159+
CREATE_EXPENSE_ONBOARDING_CHOICES: {...createExpenseOnboardingChoices},
51615160
ONBOARDING_SIGNUP_QUALIFIERS: {...signupQualifiers},
51625161
ONBOARDING_INVITE_TYPES: {...onboardingInviteTypes},
51635162
ONBOARDING_COMPANY_SIZE: {...onboardingCompanySize},
@@ -5384,11 +5383,11 @@ const CONST = {
53845383
},
53855384
} satisfies Record<OnboardingPurpose, OnboardingMessage>,
53865385

5387-
COMBINED_TRACK_SUBMIT_ONBOARDING_MESSAGES: {
5388-
[combinedTrackSubmitOnboardingChoices.PERSONAL_SPEND]: combinedTrackSubmitOnboardingPersonalSpendMessage,
5389-
[combinedTrackSubmitOnboardingChoices.EMPLOYER]: combinedTrackSubmitOnboardingEmployerOrSubmitMessage,
5390-
[combinedTrackSubmitOnboardingChoices.SUBMIT]: combinedTrackSubmitOnboardingEmployerOrSubmitMessage,
5391-
} satisfies Record<ValueOf<typeof combinedTrackSubmitOnboardingChoices>, OnboardingMessage>,
5386+
CREATE_EXPENSE_ONBOARDING_MESSAGES: {
5387+
[createExpenseOnboardingChoices.PERSONAL_SPEND]: combinedTrackSubmitOnboardingPersonalSpendMessage,
5388+
[createExpenseOnboardingChoices.EMPLOYER]: combinedTrackSubmitOnboardingEmployerOrSubmitMessage,
5389+
[createExpenseOnboardingChoices.SUBMIT]: combinedTrackSubmitOnboardingEmployerOrSubmitMessage,
5390+
} satisfies Record<ValueOf<typeof createExpenseOnboardingChoices>, OnboardingMessage>,
53925391

53935392
REPORT_FIELD_TITLE_FIELD_ID: 'text_title',
53945393

src/libs/actions/Report.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,15 +3643,14 @@ function prepareOnboardingOnyxData(
36433643
userReportedIntegration?: OnboardingAccounting,
36443644
wasInvited?: boolean,
36453645
) {
3646-
// If the user has the "combinedTrackSubmit" beta enabled we'll show different tasks for track and submit expense.
36473646
if (engagementChoice === CONST.ONBOARDING_CHOICES.PERSONAL_SPEND) {
36483647
// eslint-disable-next-line no-param-reassign
3649-
data = CONST.COMBINED_TRACK_SUBMIT_ONBOARDING_MESSAGES[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND];
3648+
data = CONST.CREATE_EXPENSE_ONBOARDING_MESSAGES[CONST.ONBOARDING_CHOICES.PERSONAL_SPEND];
36503649
}
36513650

36523651
if (engagementChoice === CONST.ONBOARDING_CHOICES.EMPLOYER || engagementChoice === CONST.ONBOARDING_CHOICES.SUBMIT) {
36533652
// eslint-disable-next-line no-param-reassign
3654-
data = CONST.COMBINED_TRACK_SUBMIT_ONBOARDING_MESSAGES[CONST.ONBOARDING_CHOICES.SUBMIT];
3653+
data = CONST.CREATE_EXPENSE_ONBOARDING_MESSAGES[CONST.ONBOARDING_CHOICES.SUBMIT];
36553654
}
36563655

36573656
// Guides are assigned and tasks are posted in the #admins room for the MANAGE_TEAM and TRACK_WORKSPACE onboarding actions, except for emails that have a '+'.

0 commit comments

Comments
 (0)