File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ import applyOnyxUpdatesReliably from './applyOnyxUpdatesReliably';
6565import { getDeviceInfoWithID } from './Device' ;
6666import { openOldDotLink } from './Link' ;
6767import { showReportActionNotification } from './Report' ;
68- import { resendValidateCode as sessionResendValidateCode } from './Session' ;
68+ import { isAnonymousUser , resendValidateCode as sessionResendValidateCode } from './Session' ;
6969import redirectToSignIn from './SignInRedirect' ;
7070
7171// `sessionAccountID` is only used in actions, not during render. So `Onyx.connectWithoutView` is appropriate.
@@ -1224,7 +1224,7 @@ function setContactMethodAsDefault(
12241224
12251225function updateTheme ( theme : ValueOf < typeof CONST . THEME > , shouldGoBack = true ) {
12261226 // When toggling high contrast from the sign-in page, the user is not signed in. So persist the preference locally only.
1227- if ( ! sessionAccountID ) {
1227+ if ( ! sessionAccountID || isAnonymousUser ( ) ) {
12281228 Onyx . set ( ONYXKEYS . PREFERRED_THEME , theme ) ;
12291229 return ;
12301230 }
You can’t perform that action at this time.
0 commit comments