Skip to content

Commit

Permalink
Merge pull request #45107 from Expensify/marco-allowUpdateTimeZoneAno…
Browse files Browse the repository at this point in the history
…nymous

[NoQA] Allow anonymous users to call updateAutomaticTimezone function
  • Loading branch information
deetergp authored Jul 11, 2024
2 parents 63e9e7b + 32a68a4 commit fedf781
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/libs/actions/PersonalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -191,10 +190,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;
}
Expand Down

0 comments on commit fedf781

Please sign in to comment.