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;