Skip to content

Commit

Permalink
Merge pull request #23844 from bernhardoj/fix/23348-workspace-name-empty
Browse files Browse the repository at this point in the history
Fix empty workspace name in money requests confirmation page
  • Loading branch information
AndrewGable authored Aug 1, 2023
2 parents 6eb03b0 + e1364cb commit cb8aac1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/OptionsListUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,17 @@ Onyx.connect({
function getPolicyExpenseReportOptions(report) {
const expenseReport = policyExpenseReports[`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`];
const policyExpenseChatAvatarSource = ReportUtils.getWorkspaceAvatar(expenseReport);
const reportName = ReportUtils.getReportName(expenseReport);
return [
{
...expenseReport,
keyForList: expenseReport.policyID,
text: expenseReport.displayName,
text: reportName,
alternateText: Localize.translateLocal('workspace.common.workspace'),
icons: [
{
source: policyExpenseChatAvatarSource,
name: expenseReport.displayName,
name: reportName,
type: CONST.ICON_TYPE_WORKSPACE,
},
],
Expand Down

0 comments on commit cb8aac1

Please sign in to comment.