diff --git a/src/components/Image/index.tsx b/src/components/Image/index.tsx index 4cd8cd20ed5f..aa981d004b75 100644 --- a/src/components/Image/index.tsx +++ b/src/components/Image/index.tsx @@ -2,7 +2,7 @@ import React, {useCallback, useContext, useEffect, useMemo, useRef, useState} fr import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import {useSession} from '@components/OnyxProvider'; import {isExpiredSession} from '@libs/actions/Session'; -import {activate as activateReauthenticator} from '@libs/actions/Session/Reauthenticator'; +import activateReauthenticator from '@libs/actions/Session/Reauthenticator'; import CONST from '@src/CONST'; import BaseImage from './BaseImage'; import {ImageBehaviorContext} from './ImageBehaviorContextProvider'; @@ -75,7 +75,6 @@ function Image({source: propsSource, isAuthTokenRequired = false, onLoad, object if (isAuthTokenRequired) { previousSessionAge.current = validSessionAge; } - return; }); /** diff --git a/src/libs/actions/Session/Reauthenticator.ts b/src/libs/actions/Session/Reauthenticator.ts index 81bda13b71ff..c9e2f071ca4f 100644 --- a/src/libs/actions/Session/Reauthenticator.ts +++ b/src/libs/actions/Session/Reauthenticator.ts @@ -29,7 +29,6 @@ Onyx.connect({ deactivate(); } } - return; }, }); @@ -63,7 +62,6 @@ function tryReauthenticate() { if (!isOffline && active) { reauthenticate(); } - return; } -export {activate}; +export default activate;