Skip to content

Commit

Permalink
fix cors issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalydosos committed Dec 8, 2024
1 parent f6ae4e8 commit 820e5d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -75,7 +75,6 @@ function Image({source: propsSource, isAuthTokenRequired = false, onLoad, object
if (isAuthTokenRequired) {
previousSessionAge.current = validSessionAge;
}
return;
});

/**
Expand Down
4 changes: 1 addition & 3 deletions src/libs/actions/Session/Reauthenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ Onyx.connect({
deactivate();
}
}
return;
},
});

Expand Down Expand Up @@ -63,7 +62,6 @@ function tryReauthenticate() {
if (!isOffline && active) {
reauthenticate();
}
return;
}

export {activate};
export default activate;

0 comments on commit 820e5d7

Please sign in to comment.