File tree 1 file changed +3
-1
lines changed
src/components/ReportActionItem
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,8 @@ function MoneyRequestView({
257
257
}
258
258
return TransactionUtils . getDescription ( updatedTransaction ?? null ) ;
259
259
} , [ updatedTransaction ] ) ;
260
+ const isEmptyUpdatedMerchant = updatedTransaction ?. modifiedMerchant === '' || updatedTransaction ?. modifiedMerchant === CONST . TRANSACTION . PARTIAL_TRANSACTION_MERCHANT ;
261
+ const updatedMerchantTitle = isEmptyUpdatedMerchant ? '' : updatedTransaction ?. modifiedMerchant ?? merchantTitle ;
260
262
261
263
const saveBillable = useCallback (
262
264
( newBillable : boolean ) => {
@@ -562,7 +564,7 @@ function MoneyRequestView({
562
564
< OfflineWithFeedback pendingAction = { getPendingFieldAction ( 'merchant' ) } >
563
565
< MenuItemWithTopDescription
564
566
description = { translate ( 'common.merchant' ) }
565
- title = { updatedTransaction ?. modifiedMerchant ?? merchantTitle }
567
+ title = { updatedMerchantTitle }
566
568
interactive = { canEditMerchant }
567
569
shouldShowRightIcon = { canEditMerchant }
568
570
titleStyle = { styles . flex1 }
You can’t perform that action at this time.
0 commit comments