From 2acb28fc234f2bcb46f750a81fb05c790b261dc3 Mon Sep 17 00:00:00 2001 From: war-in Date: Tue, 12 Nov 2024 18:45:03 +0100 Subject: [PATCH] fix after merge --- src/libs/actions/Session/index.ts | 2 +- src/types/onyx/HybridApp.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/Session/index.ts b/src/libs/actions/Session/index.ts index fd5a10debd59..6ada25e09b90 100644 --- a/src/libs/actions/Session/index.ts +++ b/src/libs/actions/Session/index.ts @@ -509,7 +509,7 @@ function signInAfterTransitionFromOldDot(route: Route, hybridAppSettings: string .then(() => Onyx.merge(ONYXKEYS.HYBRID_APP, hybridApp)) .then(() => Onyx.multiSet(newDotOnyxValues)) .then(() => { - if (!shouldRemoveDelegatedAccess) { + if (!hybridApp.shouldRemoveDelegatedAccess) { return; } return Onyx.clear(KEYS_TO_PRESERVE_DELEGATE_ACCESS); diff --git a/src/types/onyx/HybridApp.ts b/src/types/onyx/HybridApp.ts index efd3e25ec4f2..3e488f673398 100644 --- a/src/types/onyx/HybridApp.ts +++ b/src/types/onyx/HybridApp.ts @@ -23,6 +23,9 @@ type HybridApp = { /** stores infromation if last log out was performed from OldDot */ loggedOutFromOldDot?: boolean; + + /** */ + shouldRemoveDelegatedAccess?: boolean; }; export default HybridApp;