Skip to content

Commit

Permalink
Make sure timing still works
Browse files Browse the repository at this point in the history
  • Loading branch information
Beamanator committed Jul 1, 2022
1 parent ebf9fdf commit 45ecc5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/actions/Session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function createAccount(login) {
*/
function signOut() {
Log.info('Flushing logs before signing out', true, {}, true);
Timing.clearData();

if (credentials && credentials.autoGeneratedLogin) {
const optimisticData = [
Expand All @@ -97,11 +96,12 @@ function signOut() {
partnerPassword: CONFIG.EXPENSIFY.PARTNER_PASSWORD,
shouldRetry: false,
}, {optimisticData});
return;
} else {
Onyx.set(ONYXKEYS.SESSION, null);
Onyx.set(ONYXKEYS.CREDENTIALS, null);
}

Onyx.set(ONYXKEYS.SESSION, null);
Onyx.set(ONYXKEYS.CREDENTIALS, null);
Timing.clearData();
}

function signOutAndRedirectToSignIn() {
Expand Down

0 comments on commit 45ecc5d

Please sign in to comment.