Skip to content

Commit

Permalink
Rename participants to otherParticipants
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Nov 7, 2023
1 parent ab16481 commit 16da9a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3620,10 +3620,10 @@ function hasIOUWaitingOnCurrentUserBankAccount(chatReport) {
* - in DM chat
*
* @param {Object} report
* @param {Array<Number>} participants
* @param {Array<Number>} otherParticipants
* @returns {Boolean}
*/
function canRequestMoney(report, participants) {
function canRequestMoney(report, otherParticipants) {
// User cannot request money in chat thread or in task report or in chat room
if (isChatThread(report) || isTaskReport(report) || isChatRoom(report)) {
return false;
Expand All @@ -3641,7 +3641,7 @@ function canRequestMoney(report, participants) {
}

// In case there are no other participants than the current user and it's not user's own policy expense chat, they can't request money from such report
if (participants.length === 0 && !isOwnPolicyExpenseChat) {
if (otherParticipants.length === 0 && !isOwnPolicyExpenseChat) {
return false;
}

Expand Down

0 comments on commit 16da9a6

Please sign in to comment.