Skip to content

Commit b386cc3

Browse files
yuwenmemonOSBotify
authored andcommitted
Merge pull request #61388 from Expensify/revert-61125-yuwen-supportedCompanySizes
[CP Staging] Revert "Make sure that we stay in NewDot for small companies" (cherry picked from commit 82df889) (cherry-picked to staging by yuwenmemon)
1 parent 74221e8 commit b386cc3

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/CONST.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5396,7 +5396,6 @@ const CONST = {
53965396
ONBOARDING_SIGNUP_QUALIFIERS: {...signupQualifiers},
53975397
ONBOARDING_INVITE_TYPES: {...onboardingInviteTypes},
53985398
ONBOARDING_COMPANY_SIZE: {...onboardingCompanySize},
5399-
NEW_DOT_SUPPORTED_COMPANY_SIZES: [onboardingCompanySize.MICRO, onboardingCompanySize.SMALL] as string[],
54005399
ACTIONABLE_TRACK_EXPENSE_WHISPER_MESSAGE: 'What would you like to do with this expense?',
54015400
ONBOARDING_ACCOUNTING_MAPPING,
54025401
ONBOARDING_MESSAGES: {

src/libs/actions/Report.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4057,7 +4057,7 @@ function completeOnboarding({
40574057
selfDMCreatedReportActionID: selfDMParameters.createdReportActionID,
40584058
};
40594059

4060-
if (companySize && !CONST.NEW_DOT_SUPPORTED_COMPANY_SIZES.includes(companySize) && getPlatform() !== CONST.PLATFORM.DESKTOP) {
4060+
if (companySize && companySize !== CONST.ONBOARDING_COMPANY_SIZE.MICRO && getPlatform() !== CONST.PLATFORM.DESKTOP) {
40614061
optimisticData.push({
40624062
onyxMethod: Onyx.METHOD.MERGE,
40634063
key: ONYXKEYS.NVP_ONBOARDING,

src/pages/OnboardingAccounting/BaseOnboardingAccounting.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function BaseOnboardingAccounting({shouldUseNativeStyles}: BaseOnboardingAccount
200200
userReportedIntegration,
201201
});
202202

203-
if (!CONST.NEW_DOT_SUPPORTED_COMPANY_SIZES.includes(onboardingCompanySize) && getPlatform() !== CONST.PLATFORM.DESKTOP) {
203+
if (onboardingCompanySize !== CONST.ONBOARDING_COMPANY_SIZE.MICRO && getPlatform() !== CONST.PLATFORM.DESKTOP) {
204204
if (CONFIG.IS_HYBRID_APP) {
205205
return;
206206
}
@@ -228,7 +228,7 @@ function BaseOnboardingAccounting({shouldUseNativeStyles}: BaseOnboardingAccount
228228
});
229229
}}
230230
isLoading={isLoading}
231-
isDisabled={isOffline && !CONST.NEW_DOT_SUPPORTED_COMPANY_SIZES.includes(onboardingCompanySize ?? '') && CONFIG.IS_HYBRID_APP}
231+
isDisabled={isOffline && onboardingCompanySize !== CONST.ONBOARDING_COMPANY_SIZE.MICRO && CONFIG.IS_HYBRID_APP}
232232
pressOnEnter
233233
/>
234234
</>

0 commit comments

Comments
 (0)