@@ -41,7 +41,7 @@ import PopoverReportActionContextMenu from './pages/home/report/ContextMenu/Popo
41
41
import * as ReportActionContextMenu from './pages/home/report/ContextMenu/ReportActionContextMenu' ;
42
42
import type { Route } from './ROUTES' ;
43
43
import ROUTES from './ROUTES' ;
44
- import type { ScreenShareRequest , Session } from './types/onyx' ;
44
+ import type { ScreenShareRequest } from './types/onyx' ;
45
45
46
46
Onyx . registerLogger ( ( { level, message} ) => {
47
47
if ( level === 'alert' ) {
@@ -58,9 +58,6 @@ type ExpensifyOnyxProps = {
58
58
/** Whether the app is waiting for the server's response to determine if a room is public */
59
59
isCheckingPublicRoom : OnyxEntry < boolean > ;
60
60
61
- /** Session info for the currently logged in user. */
62
- session : OnyxEntry < Session > ;
63
-
64
61
/** Whether a new update is available and ready to install. */
65
62
updateAvailable : OnyxEntry < boolean > ;
66
63
@@ -91,7 +88,6 @@ const SplashScreenHiddenContext = React.createContext<SplashScreenHiddenContextT
91
88
92
89
function Expensify ( {
93
90
isCheckingPublicRoom = true ,
94
- session,
95
91
updateAvailable,
96
92
isSidebarLoaded = false ,
97
93
screenShareRequest,
@@ -106,6 +102,7 @@ function Expensify({
106
102
const [ hasAttemptedToOpenPublicRoom , setAttemptedToOpenPublicRoom ] = useState ( false ) ;
107
103
const { translate} = useLocalize ( ) ;
108
104
const [ account ] = useOnyx ( ONYXKEYS . ACCOUNT ) ;
105
+ const [ session ] = useOnyx ( ONYXKEYS . SESSION ) ;
109
106
const [ shouldShowRequire2FAModal , setShouldShowRequire2FAModal ] = useState ( false ) ;
110
107
111
108
useEffect ( ( ) => {
@@ -317,9 +314,6 @@ export default withOnyx<ExpensifyProps, ExpensifyOnyxProps>({
317
314
key : ONYXKEYS . IS_CHECKING_PUBLIC_ROOM ,
318
315
initWithStoredValues : false ,
319
316
} ,
320
- session : {
321
- key : ONYXKEYS . SESSION ,
322
- } ,
323
317
updateAvailable : {
324
318
key : ONYXKEYS . UPDATE_AVAILABLE ,
325
319
initWithStoredValues : false ,
0 commit comments