Skip to content

Commit

Permalink
remove redundand isSmallScreen check
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Dec 19, 2023
1 parent 88cc5f9 commit 2781ecc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2781ecc

Please sign in to comment.