Skip to content

Commit

Permalink
Merge pull request #44378 from bernhardoj/fix/43917-send-invoice-to-f…
Browse files Browse the repository at this point in the history
…ields-shows-hidden-name

Fix "To" field displays Hidden instead of invoice receiver
  • Loading branch information
Gonals authored Jul 1, 2024
2 parents 7c4055c + ad0ab1d commit 4c45338
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/iou/request/step/IOURequestStepConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,10 @@ function IOURequestStepConfirmation({
const participants = useMemo(
() =>
transaction?.participants?.map((participant) => {
const participantAccountID = participant.accountID ?? -1;

if (participant.isSender && iouType === CONST.IOU.TYPE.INVOICE) {
return participant;
}
return participantAccountID ? OptionsListUtils.getParticipantsOption(participant, personalDetails) : OptionsListUtils.getReportOption(participant);
return participant.accountID ? OptionsListUtils.getParticipantsOption(participant, personalDetails) : OptionsListUtils.getReportOption(participant);
}) ?? [],
[transaction?.participants, personalDetails, iouType],
);
Expand Down

0 comments on commit 4c45338

Please sign in to comment.