Skip to content

Commit

Permalink
Merge pull request #40239 from shubham1206agra/fix-split-condition
Browse files Browse the repository at this point in the history
Fixed isAllowedToSplit condition
  • Loading branch information
mountiny authored Apr 15, 2024
2 parents 3275bfd + b72690f commit b1b8b4c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,7 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({betas, participan
const shouldShowSplitBillErrorMessage = participants.length > 1 && hasPolicyExpenseChatParticipant;

// canUseP2PDistanceRequests is true if the iouType is track expense, but we don't want to allow splitting distance with track expense yet
const isAllowedToSplit =
(canUseP2PDistanceRequests || iouRequestType !== CONST.IOU.REQUEST_TYPE.DISTANCE) && (iouType !== CONST.IOU.TYPE.SEND || iouType !== CONST.IOU.TYPE.TRACK_EXPENSE);
const isAllowedToSplit = (canUseP2PDistanceRequests || iouRequestType !== CONST.IOU.REQUEST_TYPE.DISTANCE) && iouType !== CONST.IOU.TYPE.SEND && iouType !== CONST.IOU.TYPE.TRACK_EXPENSE;

const handleConfirmSelection = useCallback(
(keyEvent, option) => {
Expand Down

0 comments on commit b1b8b4c

Please sign in to comment.