Skip to content

Commit

Permalink
Fix changed files ESLint check
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-solecki committed Dec 20, 2024
1 parent 3770da6 commit 6a61f98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Share/ShareDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function ShareDetailsPage({

if (unknownUserDetails) {
optimisticReport.reportID = unknownUserDetails?.accountID?.toString() ?? '';
displayReport.participantsList = [{...unknownUserDetails, displayName: unknownUserDetails.login, accountID: unknownUserDetails.accountID ?? -1}];
displayReport.participantsList = [{...unknownUserDetails, displayName: unknownUserDetails.login, accountID: unknownUserDetails.accountID ?? CONST.DEFAULT_NUMBER_ID}];
}

if (!onyxReport || onyxReport?.ownerAccountID === 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Share/SubmitDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function SubmitDetailsPage({
IOU.initMoneyRequest(reportID, policy, false, CONST.IOU.REQUEST_TYPE.SCAN, CONST.IOU.REQUEST_TYPE.SCAN);
}, [reportID, policy]);

const selectedParticipants = unknownUserDetails ? [unknownUserDetails] : IOU.setMoneyRequestParticipantsFromReport(transaction?.transactionID ?? '-1', report);
const selectedParticipants = unknownUserDetails ? [unknownUserDetails] : IOU.setMoneyRequestParticipantsFromReport(transaction?.transactionID ?? `${CONST.DEFAULT_NUMBER_ID}`, report);
const participants = selectedParticipants.map((participant) =>
participant?.accountID ? OptionsListUtils.getParticipantsOption(participant, personalDetails) : OptionsListUtils.getReportOption(participant),
);
Expand Down

0 comments on commit 6a61f98

Please sign in to comment.