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 46b5342 commit b8336ad
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/libs/actions/Session/Reauthenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ Onyx.connect({
Onyx.connect({
key: ONYXKEYS.SESSION,
callback: (value) => {
if (value && !isSameSession(value)) {
if (!active) {
return;
}
deactivate();
if (!value || isSameSession(value) || !active) {
return;
}
deactivate();
},
});

Expand Down

0 comments on commit b8336ad

Please sign in to comment.