Skip to content

Commit

Permalink
Merge pull request #42631 from nkdengineer/fix/41584
Browse files Browse the repository at this point in the history
fix: Transaction report shows multiline title for expense with multiline description
  • Loading branch information
cristipaval authored Jun 4, 2024
2 parents cdfed69 + 0490629 commit 9705eff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3194,7 +3194,7 @@ function getReportName(report: OnyxEntry<Report>, policy: OnyxEntry<Policy> = nu
if (isArchivedRoom(report)) {
formattedName += ` (${Localize.translateLocal('common.archived')})`;
}
return formattedName;
return formatReportLastMessageText(formattedName);
}

if (parentReportAction?.message?.[0]?.isDeletedParentAction) {
Expand Down Expand Up @@ -3266,7 +3266,7 @@ function getReportName(report: OnyxEntry<Report>, policy: OnyxEntry<Policy> = nu
}

if (formattedName) {
return formattedName;
return formatReportLastMessageText(formattedName);
}

// Not a room or PolicyExpenseChat, generate title from first 5 other participants
Expand Down

0 comments on commit 9705eff

Please sign in to comment.