Skip to content

Commit 248f248

Browse files
Fix lint
1 parent 4252993 commit 248f248

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/setup/addUtilsToWindow.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Onyx from 'react-native-onyx';
2-
import * as Environment from '@libs/Environment/Environment';
2+
import {isProduction as isProductionLib} from '@libs/Environment/Environment';
33
import markAllPolicyReportsAsRead from '@libs/markAllPolicyReportsAsRead';
4-
import * as Session from '@userActions/Session';
4+
import {setSupportAuthToken} from '@userActions/Session';
55
import type {OnyxKey} from '@src/ONYXKEYS';
66

77
/**
@@ -13,7 +13,7 @@ export default function addUtilsToWindow() {
1313
return;
1414
}
1515

16-
Environment.isProduction().then((isProduction) => {
16+
isProductionLib().then((isProduction) => {
1717
if (isProduction) {
1818
return;
1919
}
@@ -42,7 +42,7 @@ export default function addUtilsToWindow() {
4242
});
4343
};
4444

45-
window.setSupportToken = Session.setSupportAuthToken;
45+
window.setSupportToken = setSupportAuthToken;
4646

4747
// Workaround to give employees the ability to mark reports as read via the JS console
4848
window.markAllPolicyReportsAsRead = markAllPolicyReportsAsRead;

0 commit comments

Comments
 (0)