Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Nov 13, 2024
1 parent 2acb28f commit 3d4254b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ import {ReportAttachmentsProvider} from './pages/home/report/ReportAttachmentsCo
import type {Route} from './ROUTES';
import {SplashScreenStateContextProvider} from './SplashScreenStateContext';

/**
* URL and settings passed to our top-level React Native component by HybridApp. Will always be undefined in "pure" NewDot builds.
*/
type AppProps = {
url?: Route;
hybridAppSettings?: string;
Expand Down
4 changes: 2 additions & 2 deletions src/Expensify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ function Expensify() {
const isAuthenticated = useMemo(() => !!(session?.authToken ?? null), [session]);
const autoAuthState = useMemo(() => session?.autoAuthState ?? '', [session]);

const shouldInit = !!NativeModules.HybridAppModule
const shouldInit = NativeModules.HybridAppModule
? !hybridApp?.loggedOutFromOldDot && isNavigationReady && hasAttemptedToOpenPublicRoom
: isNavigationReady && hasAttemptedToOpenPublicRoom;
const shouldHideSplash =
shouldInit &&
(!!NativeModules.HybridAppModule
(NativeModules.HybridAppModule
? splashScreenState === CONST.BOOT_SPLASH_STATE.READY_TO_BE_HIDDEN && (isAuthenticated || !!hybridApp?.useNewDotSignInPage)
: splashScreenState === CONST.BOOT_SPLASH_STATE.VISIBLE);

Expand Down
2 changes: 1 addition & 1 deletion src/types/onyx/HybridApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type HybridApp = {
/** */
shouldResetSigningInLogic?: boolean;

/** */
/** States whether we transitioned from OldDot to show only certain group of screens. It should be undefined on pure NewDot. */
isSingleNewDotEntry?: boolean;

/** stores infromation if last log out was performed from OldDot */
Expand Down

0 comments on commit 3d4254b

Please sign in to comment.