From 3a88493ce140a9f22beffcd8d5b074e92c5f12af Mon Sep 17 00:00:00 2001 From: Shridhar Goel <35566748+ShridharGoel@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:46:34 +0530 Subject: [PATCH] Fix missing title and details in report details page --- src/pages/ReportDetailsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index c6e25bcaa70a..aedeb9215e03 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -645,10 +645,10 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD {renderedAvatar} - {isExpenseReport && !shouldShowTitleField && nameSectionExpenseIOU} + {isExpenseReport && (!shouldShowTitleField || !titleField) && nameSectionExpenseIOU} - {isExpenseReport && shouldShowTitleField && nameSectionTitleField} + {isExpenseReport && shouldShowTitleField && titleField && nameSectionTitleField} {!isExpenseReport && nameSectionGroupWorkspace}