Skip to content

Commit

Permalink
Merge pull request #31348 from DylanDylann/fix/31104-iou-description-…
Browse files Browse the repository at this point in the history
…show-in-preview

Fix/31104: Description is shown in preview
  • Loading branch information
marcochavezf authored Nov 20, 2023
2 parents 1991736 + 75f834c commit b4f001d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function MoneyRequestPreview(props) {
// Show the merchant for IOUs and expenses only if they are custom or not related to scanning smartscan
const shouldShowMerchant =
!_.isEmpty(requestMerchant) && !props.isBillSplit && requestMerchant !== CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT && requestMerchant !== CONST.TRANSACTION.DEFAULT_MERCHANT;
const shouldShowDescription = !_.isEmpty(description) && !shouldShowMerchant;
const shouldShowDescription = !_.isEmpty(description) && !shouldShowMerchant && !isScanning;

const receiptImages = hasReceipt ? [ReceiptUtils.getThumbnailAndImageURIs(props.transaction)] : [];

Expand Down

0 comments on commit b4f001d

Please sign in to comment.