Skip to content

Commit

Permalink
Merge pull request #30591 from bernhardoj/fix/30456-personal-details-…
Browse files Browse the repository at this point in the history
…overwrite

Fix user display name is changed to their login after doing a money request
  • Loading branch information
grgia authored Nov 1, 2023
2 parents 6a76a12 + 480e84e commit 4f1fd91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/IOU.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,9 @@ function getMoneyRequestInformation(
iouReport.parentReportActionID = reportPreviewAction.reportActionID;
}

const shouldCreateOptimisticPersonalDetails = isNewChatReport && !allPersonalDetails[payerAccountID];
// Add optimistic personal details for participant
const optimisticPersonalDetailListAction = isNewChatReport
const optimisticPersonalDetailListAction = shouldCreateOptimisticPersonalDetails
? {
[payerAccountID]: {
accountID: payerAccountID,
Expand Down

0 comments on commit 4f1fd91

Please sign in to comment.