From 33b0cfd264774d85a935d3d8c6b2b8dfcd0b9f39 Mon Sep 17 00:00:00 2001 From: Adam Grzybowski Date: Tue, 19 Dec 2023 19:25:28 +0100 Subject: [PATCH] remove redundand isSmallScreen check --- .../AppNavigator/createCustomStackNavigator/CustomRouter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts index a00489fbe8be..1e438f66b302 100644 --- a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts +++ b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts @@ -117,7 +117,7 @@ function CustomRouter(options: ResponsiveStackNavigatorRouterOptions) { const topmostCentralPaneRoute = getTopmostCentralPaneRoute(partialState); const isBottomTabMatchingCentralPane = topmostCentralPaneRoute && TAB_TO_CENTRAL_PANE_MAPPING[topmostBottomTabRoute.name].includes(topmostCentralPaneRoute.name); - if (!isSmallScreenWidth && !isBottomTabMatchingCentralPane) { + if (!isBottomTabMatchingCentralPane) { // If we added a route we need to make sure that the state.stale is true to generate new key for this route // @ts-expect-error Updating read only property // noinspection JSConstantReassignment