Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
stitesExpensify committed Jan 19, 2024
1 parent 5fa2403 commit a313c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Welcome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function show(routes: NavigationState<RootStackParamList>['routes'], showEngagem
// If we are rendering the SidebarScreen at the same time as a workspace route that means we've already created a workspace via workspace/new and should not open the global
// create menu right now. We should also stay on the workspace page if that is our destination.
const transitionRoute = routes.find(
(route): route is NavigationState<Pick<RootStackParamList, 'TransitionBetweenApps'>>['routes'][number] => route.name === SCREENS.TRANSITION_BETWEEN_APPS,
(route): route is NavigationState<Pick<RootStackParamList, typeof SCREENS.TRANSITION_BETWEEN_APPS>>['routes'][number] => route.name === SCREENS.TRANSITION_BETWEEN_APPS,
);
const isExitingToWorkspaceRoute = transitionRoute?.params?.exitTo === 'workspace/new';

Expand Down

0 comments on commit a313c40

Please sign in to comment.