Skip to content

Commit 68374a5

Browse files
authored
Merge pull request Expensify#43992 from MrMuzyk/fix/43462-unable-to-open-workspace
fix: Change navigating condition
2 parents a240ce8 + d9c660c commit 68374a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/Navigation/AppNavigator/getPartialStateDiff.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ function getPartialStateDiff(state: State<RootStackParamList>, templateState: St
7272
(!stateTopmostFullScreen && templateStateTopmostFullScreen) ||
7373
(stateTopmostFullScreen &&
7474
templateStateTopmostFullScreen &&
75-
stateTopmostFullScreen.name !== templateStateTopmostFullScreen.name &&
76-
!shallowCompare(stateTopmostFullScreen.params as Record<string, unknown> | undefined, templateStateTopmostFullScreen.params as Record<string, unknown> | undefined))
75+
(stateTopmostFullScreen.name !== templateStateTopmostFullScreen.name ||
76+
!shallowCompare(stateTopmostFullScreen.params as Record<string, unknown> | undefined, templateStateTopmostFullScreen.params as Record<string, unknown> | undefined)))
7777
) {
7878
diff[NAVIGATORS.FULL_SCREEN_NAVIGATOR] = fullScreenDiff;
7979
}

0 commit comments

Comments
 (0)