Skip to content

Commit

Permalink
clean after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Dec 3, 2024
1 parent a7013cc commit 10807e5
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/pages/iou/request/MoneyRequestParticipantsSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,6 @@ function MoneyRequestParticipantsSelector({
};
}

// <<<<<<< HEAD
// const optionList = OptionsListUtils.getFilteredOptions({
// reports: options.reports,
// personalDetails: options.personalDetails.concat(contacts),
// betas,
// selectedOptions: participants as Participant[],
// excludeLogins: CONST.EXPENSIFY_EMAILS,
// // If we are using this component in the "Submit expense" or the combined submit/track flow then we pass the includeOwnedWorkspaceChats argument so that the current user
// // sees the option to submit an expense from their admin on their own Workspace Chat.
// includeOwnedWorkspaceChats: (iouType === CONST.IOU.TYPE.SUBMIT || iouType === CONST.IOU.TYPE.CREATE || iouType === CONST.IOU.TYPE.SPLIT) && action !== CONST.IOU.ACTION.SUBMIT,
// =======
const optionList = OptionsListUtils.getOptions(
{
reports: options.reports,
Expand All @@ -146,7 +135,6 @@ function MoneyRequestParticipantsSelector({
// sees the option to submit an expense from their admin on their own Workspace Chat.
includeOwnedWorkspaceChats:
(iouType === CONST.IOU.TYPE.SUBMIT || iouType === CONST.IOU.TYPE.CREATE || iouType === CONST.IOU.TYPE.SPLIT) && action !== CONST.IOU.ACTION.SUBMIT,
// >>>>>>> 2c78c93d81316ddffc4673c78afd6afe4e2dd18f

includeP2P: !isCategorizeOrShareAction,
includeInvoiceRooms: iouType === CONST.IOU.TYPE.INVOICE,
Expand Down Expand Up @@ -303,20 +291,7 @@ function MoneyRequestParticipantsSelector({
(option: Participant & OptionsListUtils.Option) => {
const newParticipants: Participant[] = [
{
...lodashPick(
option,
'accountID',
'login',
'isPolicyExpenseChat',
'reportID',
'searchText',
'policyID',
'participantsList[0].firstName',
'participantsList[0].lastName',
'participantsList[0].displayName',
'participantsList[0].phoneNumber',
'participantsList[0].avatar',
),
...lodashPick(option, 'accountID', 'login', 'isPolicyExpenseChat', 'reportID', 'searchText', 'policyID', 'text', 'phoneNumber'),
selected: true,
iouType,
},
Expand Down

0 comments on commit 10807e5

Please sign in to comment.