File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -4220,6 +4220,10 @@ function getReportPreviewMessage(
4220
4220
let actualPayerName = report . managerID === currentUserAccountID ? '' : getDisplayNameForParticipant ( { accountID : report . managerID , shouldUseShortForm : true } ) ;
4221
4221
actualPayerName = actualPayerName && isForListPreview && ! isPreviewMessageForParentChatReport ? `${ actualPayerName } :` : actualPayerName ;
4222
4222
const payerDisplayName = isPreviewMessageForParentChatReport ? payerName : actualPayerName ;
4223
+ if ( isForListPreview && report ?. parentReportID != null ) {
4224
+ const payerText = isDM ( parentReport ) && translatePhraseKey === 'iou.payerPaidAmount' ? '' : payerDisplayName ;
4225
+ return translateLocal ( translatePhraseKey , { amount : formattedAmount , payer : payerText } ) ;
4226
+ }
4223
4227
4224
4228
return translateLocal ( translatePhraseKey , { amount : formattedAmount , payer : payerDisplayName ?? '' } ) ;
4225
4229
}
You can’t perform that action at this time.
0 commit comments