Skip to content

Commit 18000a2

Browse files
committed
Merge branch 'main' into kidroca/feature/react-native-web-image-headers
2 parents 8fed789 + f80fbe3 commit 18000a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libs/actions/Link.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as Url from '@libs/Url';
77
import CONFIG from '@src/CONFIG';
88
import CONST from '@src/CONST';
99
import ONYXKEYS from '@src/ONYXKEYS';
10-
import ROUTES from '@src/ROUTES';
10+
import ROUTES, {Route} from '@src/ROUTES';
1111

1212
let isNetworkOffline = false;
1313
Onyx.connect({
@@ -100,7 +100,7 @@ function openLink(href: string, environmentURL: string, isAttachment = false) {
100100
// If we are handling a New Expensify link then we will assume this should be opened by the app internally. This ensures that the links are opened internally via react-navigation
101101
// instead of in a new tab or with a page refresh (which is the default behavior of an anchor tag)
102102
if (internalNewExpensifyPath && hasSameOrigin) {
103-
Navigation.navigate(internalNewExpensifyPath);
103+
Navigation.navigate(internalNewExpensifyPath as Route);
104104
return;
105105
}
106106

0 commit comments

Comments
 (0)