File tree Expand file tree Collapse file tree
src/components/TransactionItemRow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ import {
2626 getCreated as getTransactionCreated ,
2727 getTransactionPendingAction ,
2828 hasMissingSmartscanFields ,
29- hasReceipt ,
3029 isAmountMissing ,
3130 isMerchantMissing ,
32- isReceiptBeingScanned ,
31+ isScanning ,
3332 isTransactionPendingDelete ,
3433} from '@libs/TransactionUtils' ;
3534import variables from '@styles/variables' ;
@@ -113,11 +112,13 @@ function getMerchantNameWithFallback(transactionItem: TransactionWithOptionalSea
113112 if ( merchantNameEmpty && shouldUseNarrowLayout ) {
114113 merchantOrDescriptionToDisplay = Parser . htmlToText ( description ) ;
115114 }
115+
116116 let merchant = shouldShowMerchant ? merchantOrDescriptionToDisplay : Parser . htmlToText ( description ) ;
117117
118- if ( hasReceipt ( transactionItem ) && isReceiptBeingScanned ( transactionItem ) && shouldShowMerchant ) {
118+ if ( isScanning ( transactionItem ) && shouldShowMerchant ) {
119119 merchant = translate ( 'iou.receiptStatusTitle' ) ;
120120 }
121+
121122 const merchantName = StringUtils . getFirstLine ( merchant ) ;
122123 return merchant !== CONST . TRANSACTION . PARTIAL_TRANSACTION_MERCHANT ? merchantName : '' ;
123124}
You can’t perform that action at this time.
0 commit comments