Skip to content

Commit 1a8137d

Browse files
Merge pull request Expensify#55594 from mkzie2/mkzie2-issue/54814
Fix expense report title is changed after paying
2 parents 8046b17 + 49a7c90 commit 1a8137d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libs/ReportUtils.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3270,8 +3270,7 @@ function getAvailableReportFields(report: Report, policyReportFields: PolicyRepo
32703270
* Get the title for an IOU or expense chat which will be showing the payer and the amount
32713271
*/
32723272
function getMoneyRequestReportName(report: OnyxEntry<Report>, policy?: OnyxEntry<Policy>, invoiceReceiverPolicy?: OnyxEntry<Policy>): string {
3273-
const isReportSettled = isSettled(report?.reportID);
3274-
const reportFields = isReportSettled ? report?.fieldList : getReportFieldsByPolicyID(report?.policyID);
3273+
const reportFields = getReportFieldsByPolicyID(report?.policyID);
32753274
const titleReportField = Object.values(reportFields ?? {}).find((reportField) => reportField?.fieldID === CONST.REPORT_FIELD_TITLE_FIELD_ID);
32763275

32773276
if (titleReportField && report?.reportName && isPaidGroupPolicyExpenseReport(report)) {

0 commit comments

Comments
 (0)