From 029320ad0884f00fa2ec5875ebec4a72a525bdf1 Mon Sep 17 00:00:00 2001 From: OSBotify <76178356+OSBotify@users.noreply.github.com> Date: Wed, 13 Oct 2021 10:46:46 -0700 Subject: [PATCH 1/2] Merge pull request #5808 from Expensify/version-BUILD-d61248f3d55a25d71bc80e20ecb6c4f8c17ff187 (cherry picked from commit ff362fbc23115218287f1ba535227cdf9319205f) --- android/app/build.gradle | 4 ++-- ios/NewExpensify/Info.plist | 2 +- ios/NewExpensifyTests/Info.plist | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index c81f1de07027..b7fa2b0a37f1 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 1001010706 - versionName "1.1.7-6" + versionCode 1001010707 + versionName "1.1.7-7" } splits { abi { diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index f0e34407b06b..281e7a20fa32 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -31,7 +31,7 @@ CFBundleVersion - 1.1.7.6 + 1.1.7.7 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist index 886c00b8936e..e515ed9038ca 100644 --- a/ios/NewExpensifyTests/Info.plist +++ b/ios/NewExpensifyTests/Info.plist @@ -19,6 +19,6 @@ CFBundleSignature ???? CFBundleVersion - 1.1.7.6 + 1.1.7.7 diff --git a/package-lock.json b/package-lock.json index f3a38b4bcfd6..381c70af6661 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.1.7-6", + "version": "1.1.7-7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a71e0d1547b0..ca26ab82bab2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "1.1.7-6", + "version": "1.1.7-7", "author": "Expensify, Inc.", "homepage": "https://new.expensify.com", "description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.", From a0689e4bce0623d3baa82628260a799a14db5721 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Wed, 13 Oct 2021 07:43:57 -1000 Subject: [PATCH 2/2] Merge pull request #5771 from Expensify/alberto-workspaceSections Do not always clear Onyx VBA data when accessing workspace sections (cherry picked from commit d61248f3d55a25d71bc80e20ecb6c4f8c17ff187) --- src/libs/actions/BankAccounts.js | 11 +++++++++-- src/pages/workspace/WorkspacePageWithSections.js | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/libs/actions/BankAccounts.js b/src/libs/actions/BankAccounts.js index c9191083f0ce..f2697261a6ff 100644 --- a/src/libs/actions/BankAccounts.js +++ b/src/libs/actions/BankAccounts.js @@ -335,14 +335,21 @@ function fetchUserWallet() { * Fetch the bank account currently being set up by the user for the free plan if it exists. * * @param {String} [stepToOpen] + * @param {String} [localBankAccountState] */ -function fetchFreePlanVerifiedBankAccount(stepToOpen) { +function fetchFreePlanVerifiedBankAccount(stepToOpen, localBankAccountState) { // Remember which account BankAccountStep subStep the user had before so we can set it later const subStep = lodashGet(reimbursementAccountInSetup, 'subStep', ''); + const initialData = {loading: true, error: ''}; + + // Some UI needs to know the bank account state during the loading process, so we are keeping it in Onyx if passed + if (localBankAccountState) { + initialData.achData = {state: localBankAccountState}; + } // We are using set here since we will rely on data from the server (not local data) to populate the VBA flow // and determine which step to navigate to. - Onyx.set(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {loading: true, error: ''}); + Onyx.set(ONYXKEYS.REIMBURSEMENT_ACCOUNT, initialData); let bankAccountID; API.Get({ diff --git a/src/pages/workspace/WorkspacePageWithSections.js b/src/pages/workspace/WorkspacePageWithSections.js index 6179eb8b6c65..07ff09ff8b05 100644 --- a/src/pages/workspace/WorkspacePageWithSections.js +++ b/src/pages/workspace/WorkspacePageWithSections.js @@ -46,7 +46,8 @@ const defaultProps = { class WorkspacePageWithSections extends React.Component { componentDidMount() { - fetchFreePlanVerifiedBankAccount(); + const achState = lodashGet(this.props.reimbursementAccount, 'achData.state', ''); + fetchFreePlanVerifiedBankAccount('', achState); } render() {