diff --git a/Mobile-Expensify b/Mobile-Expensify index de9e2d6eb476..5b1507fb26f6 160000 --- a/Mobile-Expensify +++ b/Mobile-Expensify @@ -1 +1 @@ -Subproject commit de9e2d6eb4767b7ee2c7ff444c08ad7550f35498 +Subproject commit 5b1507fb26f61f741b1b17e89dfbcccda20f38a8 diff --git a/android/app/build.gradle b/android/app/build.gradle index 0c6985197462..c32d34c8781e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -111,8 +111,8 @@ android { minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion multiDexEnabled rootProject.ext.multiDexEnabled - versionCode 1009034103 - versionName "9.3.41-3" + versionCode 1009034104 + versionName "9.3.41-4" // Supported language variants must be declared here to avoid from being removed during the compilation. // This also helps us to not include unnecessary language variants in the APK. resConfigs "en", "es" diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist index 389fb7667047..e0e486672ece 100644 --- a/ios/NewExpensify/Info.plist +++ b/ios/NewExpensify/Info.plist @@ -44,7 +44,7 @@ CFBundleVersion - 9.3.41.3 + 9.3.41.4 FullStory OrgId diff --git a/ios/NotificationServiceExtension/Info.plist b/ios/NotificationServiceExtension/Info.plist index f1456d3c5dfb..16dd17d82f30 100644 --- a/ios/NotificationServiceExtension/Info.plist +++ b/ios/NotificationServiceExtension/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 9.3.41 CFBundleVersion - 9.3.41.3 + 9.3.41.4 NSExtension NSExtensionPointIdentifier diff --git a/ios/ShareViewController/Info.plist b/ios/ShareViewController/Info.plist index d0dcd4886876..94c62cc11649 100644 --- a/ios/ShareViewController/Info.plist +++ b/ios/ShareViewController/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 9.3.41 CFBundleVersion - 9.3.41.3 + 9.3.41.4 NSExtension NSExtensionAttributes diff --git a/package-lock.json b/package-lock.json index e46f3de3158e..b31532871fe3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "new.expensify", - "version": "9.3.41-3", + "version": "9.3.41-4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "new.expensify", - "version": "9.3.41-3", + "version": "9.3.41-4", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 7f267079a3a7..82e3f192a1a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "new.expensify", - "version": "9.3.41-3", + "version": "9.3.41-4", "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.", diff --git a/src/components/MoneyRequestHeader.tsx b/src/components/MoneyRequestHeader.tsx index 6c733270c4bf..fa695d50bc9b 100644 --- a/src/components/MoneyRequestHeader.tsx +++ b/src/components/MoneyRequestHeader.tsx @@ -4,7 +4,7 @@ import {hasSeenTourSelector} from '@selectors/Onboarding'; import {validTransactionDraftsSelector} from '@selectors/TransactionDraft'; import type {ReactNode} from 'react'; import React, {useCallback, useMemo, useRef, useState} from 'react'; -import {View} from 'react-native'; +import {InteractionManager, View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import type {ValueOf} from 'type-fest'; import useConfirmModal from '@hooks/useConfirmModal'; @@ -626,8 +626,12 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre currentUserAccountID: accountID, }); } else { - deleteTransactions([transaction.transactionID], duplicateTransactions, duplicateTransactionViolations, currentSearchHash, true); - removeTransaction(transaction.transactionID); + // Money request should be deleted when interactions are done, to not show the not found page before navigating to goBackRoute + // eslint-disable-next-line @typescript-eslint/no-deprecated + InteractionManager.runAfterInteractions(() => { + deleteTransactions([transaction.transactionID], duplicateTransactions, duplicateTransactionViolations, currentSearchHash, true); + removeTransaction(transaction.transactionID); + }); } if (isInNarrowPaneModal) { Navigation.navigateBackToLastSuperWideRHPScreen();