Skip to content

Commit

Permalink
fix: Split - App does not throw an error when saving the empty mercha…
Browse files Browse the repository at this point in the history
…nt field.

Signed-off-by: krishna2323 <[email protected]>
  • Loading branch information
Krishna2323 committed Jul 13, 2024
1 parent fef8ef8 commit 2b9b1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepMerchant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ 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) || transaction?.participants?.some((participant) => !!participant.isPolicyExpenseChat);

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

0 comments on commit 2b9b1a1

Please sign in to comment.