diff --git a/package.json b/package.json index c632c8519cce3..da5b66da18002 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure", "typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc", "typecheck-tsgo": "tsgo --project tsconfig.tsgo.json", - "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=316 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=315 --cache --cache-location=node_modules/.cache/eslint --cache-strategy content --concurrency=auto", "lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh", "check-lazy-loading": "ts-node scripts/checkLazyLoading.ts", "lint-watch": "npx eslint-watch --watch --changed", diff --git a/src/libs/actions/Session/index.ts b/src/libs/actions/Session/index.ts index 7ebdac9a989fc..5d5d016d6d58d 100644 --- a/src/libs/actions/Session/index.ts +++ b/src/libs/actions/Session/index.ts @@ -121,14 +121,6 @@ Onyx.connect({ callback: (value) => (stashedCredentials = value ?? {}), }); -let activePolicyID: OnyxEntry; -Onyx.connect({ - key: ONYXKEYS.NVP_ACTIVE_POLICY_ID, - callback: (newActivePolicyID) => { - activePolicyID = newActivePolicyID; - }, -}); - let isUsingImportedState: boolean | undefined; Onyx.connectWithoutView({ key: ONYXKEYS.IS_USING_IMPORTED_STATE, @@ -378,8 +370,7 @@ function signOutAndRedirectToSignIn(shouldResetToHome?: boolean, shouldStashSess HybridAppModule.switchAccount({ newDotCurrentAccountEmail: stashedSession.email ?? '', authToken: stashedSession.authToken ?? '', - // eslint-disable-next-line rulesdir/no-default-id-values - policyID: activePolicyID ?? '', + policyID: '', accountID: session.accountID ? String(session.accountID) : '', }); hasSwitchedAccountInHybridMode = true;