Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/libs/actions/PersonalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {DateOfBirthForm, PersonalDetails, PersonalDetailsList, PrivatePersonalDetails} from '@src/types/onyx';
import type {SelectedTimezone, Timezone} from '@src/types/onyx/PersonalDetails';
import * as Session from './Session';

type FirstAndLastName = {
firstName: string;
Expand Down Expand Up @@ -263,6 +264,10 @@ 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
4 changes: 4 additions & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2411,6 +2411,10 @@ const updatePrivateNotes = (reportID: string, accountID: number, note: string) =

/** Fetches all the private notes for a given report */
function getReportPrivateNote(reportID: string) {
if (Session.isAnonymousUser()) {
return;
}

if (!reportID) {
return;
}
Expand Down