Skip to content

Commit

Permalink
Merge pull request #45371 from Krishna2323/krishna2323/issue/45180
Browse files Browse the repository at this point in the history
fix: Split - App does not throw an error when saving the empty merchant field.
  • Loading branch information
Julesssss authored Jul 15, 2024
2 parents fc1d3d7 + 07def0a commit 167aea2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/iou/request/step/IOURequestStepMerchant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function IOURequestStepMerchant({
const merchant = ReportUtils.getTransactionDetails(isEditingSplitBill && !isEmptyObject(splitDraftTransaction) ? splitDraftTransaction : transaction)?.merchant;
const isEmptyMerchant = merchant === '' || merchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT;

const isMerchantRequired = ReportUtils.isExpenseRequest(report) || transaction?.participants?.some((participant) => !!participant.isPolicyExpenseChat);
const isMerchantRequired =
ReportUtils.isPolicyExpenseChat(report) || ReportUtils.isExpenseRequest(report) || transaction?.participants?.some((participant) => !!participant.isPolicyExpenseChat);

const navigateBack = () => {
Navigation.goBack(backTo);
Expand Down

0 comments on commit 167aea2

Please sign in to comment.