Skip to content

Commit 239c21f

Browse files
committed
anonymous account - local only
1 parent b93685c commit 239c21f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libs/actions/User.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import applyOnyxUpdatesReliably from './applyOnyxUpdatesReliably';
6565
import {getDeviceInfoWithID} from './Device';
6666
import {openOldDotLink} from './Link';
6767
import {showReportActionNotification} from './Report';
68-
import {resendValidateCode as sessionResendValidateCode} from './Session';
68+
import {isAnonymousUser, resendValidateCode as sessionResendValidateCode} from './Session';
6969
import 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

12251225
function 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
}

0 commit comments

Comments
 (0)