Skip to content

Commit

Permalink
fix: do not show merchant on scan request
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Dec 29, 2023
1 parent c62fa9d commit 513b612
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function MoneyTemporaryForRefactorRequestConfirmationList({
}, [isEditingSplitBill, hasSmartScanFailed, transaction, didConfirmSplit]);

const isMerchantEmpty = !iouMerchant || iouMerchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT;
const isMerchantRequired = isPolicyExpenseChat && !isScanRequest;
const isMerchantRequired = isPolicyExpenseChat && !isScanRequest && shouldShowMerchant;

useEffect(() => {
if ((!isMerchantRequired && isMerchantEmpty) || !merchantError) {
Expand Down

0 comments on commit 513b612

Please sign in to comment.