Skip to content

Commit

Permalink
fixing issues with eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Oct 9, 2024
1 parent fa01ff6 commit 0c4dc63
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Expensify.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ function Expensify({
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
const [session] = useOnyx(ONYXKEYS.SESSION);
const [lastRoute] = useOnyx(ONYXKEYS.LAST_ROUTE);
const [userMetadata] = useOnyx(ONYXKEYS.USER_METADATA);
const [shouldShowRequire2FAModal, setShouldShowRequire2FAModal] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -149,8 +150,7 @@ function Expensify({
ActiveClientManager.init();

// Initialize Fullstory lib
const [session] = useOnyx(ONYXKEYS.USER_METADATA);
FS.init(session);
FS.init(userMetadata);

// Used for the offline indicator appearing when someone is offline
const unsubscribeNetInfo = NetworkConnection.subscribeToNetInfo();
Expand Down
2 changes: 0 additions & 2 deletions src/libs/Fullstory/index.native.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import FullStory, {FSPage} from '@fullstory/react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {useOnyx} from 'react-native-onyx';
import CONST from '@src/CONST';
import * as Environment from '@src/libs/Environment/Environment';
import ONYXKEYS from '@src/ONYXKEYS';
import type {UserMetadata} from '@src/types/onyx';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Fullstory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const FS = {
/**
* Init function, created so we're consistent with the native file
*/
init: (value: OnyxEntry<UserMetadata>) => {},
init: (_value: OnyxEntry<UserMetadata>) => {},

Check failure on line 90 in src/libs/Fullstory/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

'_value' is defined but never used
};

export default FS;
Expand Down

0 comments on commit 0c4dc63

Please sign in to comment.