Skip to content

Commit 090a8dd

Browse files
authored
Merge pull request Expensify#64105 from FitseTLT/fix-showing-not-found-page-on-delete-report
Fix - mWeb - Report - "Not Here" page is briefly displayed when deleting an empty report
2 parents 8f63a4f + a0c5352 commit 090a8dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,10 @@ function MoneyReportHeader({
10941094
onConfirm={() => {
10951095
setIsDeleteReportModalVisible(false);
10961096

1097-
deleteAppReport(moneyRequestReport?.reportID);
10981097
Navigation.goBack();
1098+
InteractionManager.runAfterInteractions(() => {
1099+
deleteAppReport(moneyRequestReport?.reportID);
1100+
});
10991101
}}
11001102
onCancel={() => setIsDeleteReportModalVisible(false)}
11011103
prompt={translate('iou.deleteReportConfirmation')}

0 commit comments

Comments
 (0)