Skip to content

Commit 95f946a

Browse files
fix: redirection to not found page when you click on receipt preview
1 parent 6a0b99e commit 95f946a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,14 @@ function RightModalNavigator({navigation, route}: RightModalNavigatorProps) {
5454
screenOptions={screenOptions}
5555
screenListeners={{
5656
blur: () => {
57-
if (route.params?.screen !== SCREENS.RIGHT_MODAL.TRANSACTION_DUPLICATE) {
57+
if (
58+
// @ts-expect-error There is something wrong with a types here and it's don't see the params list
59+
navigation.getState().routes.find((routes) => routes.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR)?.params?.screen ===
60+
SCREENS.RIGHT_MODAL.TRANSACTION_DUPLICATE ||
61+
route.params?.screen !== SCREENS.RIGHT_MODAL.TRANSACTION_DUPLICATE
62+
) {
5863
return;
5964
}
60-
6165
abandonReviewDuplicateTransactions();
6266
},
6367
}}

0 commit comments

Comments
 (0)