diff --git a/android/app/build.gradle b/android/app/build.gradle index 07eb94525c8..22d8ebfd709 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -150,8 +150,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1001008501 - versionName "1.0.85-1" + versionCode 1001008502 + versionName "1.0.85-2" } splits { abi { diff --git a/ios/ExpensifyCash/Info.plist b/ios/ExpensifyCash/Info.plist index 66d27e0728c..2d857dc6228 100644 --- a/ios/ExpensifyCash/Info.plist +++ b/ios/ExpensifyCash/Info.plist @@ -30,7 +30,7 @@ CFBundleVersion - 1.0.85.1 + 1.0.85.2 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/ExpensifyCashTests/Info.plist b/ios/ExpensifyCashTests/Info.plist index a0b38dec598..305910f1b68 100644 --- a/ios/ExpensifyCashTests/Info.plist +++ b/ios/ExpensifyCashTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.0.85.1 + 1.0.85.2 diff --git a/package-lock.json b/package-lock.json index e635e5356e5..6eb2cf4e4d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.0.85-1", + "version": "1.0.85-2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f250a0aa481..1862b13094e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.0.85-1", + "version": "1.0.85-2", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "Expensify.cash is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", diff --git a/src/libs/actions/SignInRedirect.js b/src/libs/actions/SignInRedirect.js index fec0dafc581..481fff07e3d 100644 --- a/src/libs/actions/SignInRedirect.js +++ b/src/libs/actions/SignInRedirect.js @@ -45,21 +45,18 @@ function redirectToSignIn(errorMessage) { const activeClients = currentActiveClients; const preferredLocale = currentPreferredLocale; - // We must set the authToken to null so we can navigate to "signin" it's not possible to navigate to the route as - // it only exists when the authToken is null. - Onyx.set(ONYXKEYS.SESSION, {authToken: null}) + // Clearing storage discards the authToken. This causes a redirect to the SignIn screen + Onyx.clear() .then(() => { - Onyx.clear().then(() => { - if (preferredLocale) { - Onyx.set(ONYXKEYS.NVP_PREFERRED_LOCALE, preferredLocale); - } - if (errorMessage) { - Onyx.set(ONYXKEYS.SESSION, {error: errorMessage}); - } - if (activeClients && activeClients.length > 0) { - Onyx.set(ONYXKEYS.ACTIVE_CLIENTS, activeClients); - } - }); + if (preferredLocale) { + Onyx.set(ONYXKEYS.NVP_PREFERRED_LOCALE, preferredLocale); + } + if (errorMessage) { + Onyx.set(ONYXKEYS.SESSION, {error: errorMessage}); + } + if (activeClients && activeClients.length > 0) { + Onyx.set(ONYXKEYS.ACTIVE_CLIENTS, activeClients); + } }); }