Skip to content

Commit

Permalink
Merge pull request #44973 from ShridharGoel/patch-9
Browse files Browse the repository at this point in the history
Fix missing title and details in report details page
  • Loading branch information
Julesssss authored Jul 8, 2024
2 parents e0ccba5 + 3a88493 commit 9d452e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,10 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
<ScrollView style={[styles.flex1]}>
<View style={[styles.reportDetailsTitleContainer, styles.pb0]}>
{renderedAvatar}
{isExpenseReport && !shouldShowTitleField && nameSectionExpenseIOU}
{isExpenseReport && (!shouldShowTitleField || !titleField) && nameSectionExpenseIOU}
</View>

{isExpenseReport && shouldShowTitleField && nameSectionTitleField}
{isExpenseReport && shouldShowTitleField && titleField && nameSectionTitleField}

{!isExpenseReport && nameSectionGroupWorkspace}

Expand Down

0 comments on commit 9d452e1

Please sign in to comment.