Skip to content

Commit

Permalink
Fix issue #31789 changed undefined to null
Browse files Browse the repository at this point in the history
  • Loading branch information
AmjedNazzal authored Dec 13, 2023
1 parent 2b15b9c commit eb1207f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Session/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ function signInWithShortLivedAuthToken(email: string, authToken: string) {
},
];

// Subsequently, we revert it back to the default value of 'signedInWithShortLivedAuthToken' (undefined) in 'successData' or 'failureData' to ensure the user is logged out on refresh
// Subsequently, we revert it back to the default value of 'signedInWithShortLivedAuthToken' in 'successData' or 'failureData' to ensure the user is logged out on refresh
// We are combining both success and failure data params into one const as they are identical
const resolutionData: OnyxUpdate[] = [
{
Expand All @@ -356,7 +356,7 @@ function signInWithShortLivedAuthToken(email: string, authToken: string) {
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.SESSION,
value: {
signedInWithShortLivedAuthToken: undefined,
signedInWithShortLivedAuthToken: null,
},
},
];
Expand Down

0 comments on commit eb1207f

Please sign in to comment.