diff --git a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts index b4bb56262860..529f0f3d31a7 100644 --- a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts +++ b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts @@ -5,7 +5,6 @@ import useActiveWorkspace from '@hooks/useActiveWorkspace'; import usePermissions from '@hooks/usePermissions'; import {getPolicyMembersByIdWithoutCurrentUser} from '@libs/PolicyUtils'; import * as ReportUtils from '@libs/ReportUtils'; -import * as App from '@userActions/App'; import ONYXKEYS from '@src/ONYXKEYS'; import type {Policy, PolicyMembers, Report, ReportMetadata} from '@src/types/onyx'; import type {ReportScreenWrapperProps} from './ReportScreenWrapper'; @@ -71,7 +70,6 @@ function ReportScreenIDSetter({route, reports, policies, policyMembers = {}, nav if (reportActionID && !regexValidReportActionID.test(reportActionID)) { navigation.setParams({reportActionID: ''}); } - App.confirmReadyToOpenApp(); return; } @@ -93,8 +91,6 @@ function ReportScreenIDSetter({route, reports, policies, policyMembers = {}, nav // in that case the reportID is undefined if (reportID) { navigation.setParams({reportID: String(reportID)}); - } else { - App.confirmReadyToOpenApp(); } }, [route, navigation, reports, canUseDefaultRooms, policies, isFirstTimeNewExpensifyUser, reportMetadata, activeWorkspaceID, policyMembers, accountID]); diff --git a/src/pages/home/sidebar/SidebarLinks.js b/src/pages/home/sidebar/SidebarLinks.js index 9431bae68d8a..e872bbad008a 100644 --- a/src/pages/home/sidebar/SidebarLinks.js +++ b/src/pages/home/sidebar/SidebarLinks.js @@ -51,11 +51,8 @@ function SidebarLinks({onLinkClick, insets, optionListItems, isLoading, priority const {isSmallScreenWidth} = useWindowDimensions(); useEffect(() => { - if (!isSmallScreenWidth) { - return; - } App.confirmReadyToOpenApp(); - }, [isSmallScreenWidth]); + }, []); useEffect(() => { InteractionManager.runAfterInteractions(() => {