Skip to content

Commit

Permalink
refactor: use participant instead of expenseReport
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
  • Loading branch information
hurali97 and shubham1206agra authored Mar 28, 2024
1 parent 11917c4 commit acc3455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,8 +769,8 @@ function getPolicyExpenseReportOption(participant: Participant | ReportUtils.Opt
// Update text & alternateText because createOption returns workspace name only if report is owned by the user
option.text = ReportUtils.getPolicyName(expenseReport);
option.alternateText = Localize.translateLocal('workspace.common.workspace');
option.selected = expenseReport?.selected;
option.isSelected = expenseReport?.selected;
option.selected = participant.selected;
option.isSelected = participant.selected;
return option;
}

Expand Down

0 comments on commit acc3455

Please sign in to comment.