From 7124c6a71683e61f26f5d318805081eb00a941b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Tue, 9 Jul 2024 12:28:55 -0600 Subject: [PATCH 1/2] chore: Remove unnecessary code in updateAutomaticTimezone function --- src/libs/actions/PersonalDetails.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libs/actions/PersonalDetails.ts b/src/libs/actions/PersonalDetails.ts index 5870d642d8cd..6fd780967b93 100644 --- a/src/libs/actions/PersonalDetails.ts +++ b/src/libs/actions/PersonalDetails.ts @@ -191,10 +191,6 @@ function updateAddress(street: string, street2: string, city: string, state: str * selected timezone if set to automatically update. */ function updateAutomaticTimezone(timezone: Timezone) { - if (Session.isAnonymousUser()) { - return; - } - if (!currentUserAccountID) { return; } From 32a68a44121c035b6ef47af9b42826519eab9204 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Ch=C3=A1vez?= Date: Wed, 10 Jul 2024 10:21:05 -0600 Subject: [PATCH 2/2] chore: Remove unnecessary code in updateAutomaticTimezone function --- src/libs/actions/PersonalDetails.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/PersonalDetails.ts b/src/libs/actions/PersonalDetails.ts index 6fd780967b93..8e2fff3868ae 100644 --- a/src/libs/actions/PersonalDetails.ts +++ b/src/libs/actions/PersonalDetails.ts @@ -25,7 +25,6 @@ import ROUTES from '@src/ROUTES'; import type {DateOfBirthForm} from '@src/types/form'; import type {PersonalDetails, PersonalDetailsList} from '@src/types/onyx'; import type {SelectedTimezone, Timezone} from '@src/types/onyx/PersonalDetails'; -import * as Session from './Session'; let currentUserEmail = ''; let currentUserAccountID = -1;