Skip to content

Commit 85b94dd

Browse files
committed
fix: report header shows "x expense" instead of "x for description" after removing merchant Expensify#65974
1 parent 3c8411a commit 85b94dd

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/libs/TransactionUtils/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,10 @@ function hasReceiptSource(transaction: OnyxInputOrEntry<Transaction>): boolean {
338338
}
339339

340340
function isMerchantMissing(transaction: OnyxEntry<Transaction>) {
341+
if (transaction?.wasMerchantCleared) {
342+
return true;
343+
}
344+
341345
if (transaction?.modifiedMerchant && transaction.modifiedMerchant !== '') {
342346
return transaction.modifiedMerchant === CONST.TRANSACTION.PARTIAL_TRANSACTION_MERCHANT;
343347
}

0 commit comments

Comments
 (0)