Skip to content

Commit

Permalink
remove unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Nov 27, 2024
1 parent 4962b8e commit 0a2ef8e
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/pages/iou/request/step/IOURequestStepAmount.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,6 @@ function IOURequestStepAmount({
const backendAmount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(amount));

if (shouldSkipConfirmation) {
// Only skip confirmation when the split is not configurable, for now Smartscanned splits cannot be configured
if (iouType === CONST.IOU.TYPE.SPLIT && transaction?.iouRequestType === CONST.IOU.REQUEST_TYPE.SCAN) {
playSound(SOUNDS.DONE);
IOU.splitBill({
participants,
currentUserLogin: currentUserPersonalDetails.login ?? '',
currentUserAccountID: currentUserPersonalDetails.accountID,
amount: backendAmount,
comment: '',
currency,
merchant: CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT,
tag: '',
category: '',
created: transaction?.created ?? '',
billable: false,
iouRequestType: CONST.IOU.REQUEST_TYPE.MANUAL,
existingSplitChatReportID: report?.reportID,
});
return;
}

if (iouType === CONST.IOU.TYPE.PAY || iouType === CONST.IOU.TYPE.SEND) {
if (paymentMethod && paymentMethod === CONST.IOU.PAYMENT_TYPE.EXPENSIFY) {
IOU.sendMoneyWithWallet(report, backendAmount, currency, '', currentUserPersonalDetails.accountID, participants.at(0) ?? {});
Expand Down

0 comments on commit 0a2ef8e

Please sign in to comment.