From 7130361eb309046440ec9f820ddf69731ccb61ec Mon Sep 17 00:00:00 2001 From: tienifr Date: Tue, 3 Oct 2023 11:34:20 +0700 Subject: [PATCH] fix: @fake shows in task with no assignee --- src/components/ReportActionItem/TaskPreview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ReportActionItem/TaskPreview.js b/src/components/ReportActionItem/TaskPreview.js index 9f82c2000dcf..51677892652e 100644 --- a/src/components/ReportActionItem/TaskPreview.js +++ b/src/components/ReportActionItem/TaskPreview.js @@ -76,7 +76,8 @@ function TaskPreview(props) { const assigneeLogin = lodashGet(props.personalDetailsList, [taskAssigneeAccountID, 'login'], ''); const assigneeDisplayName = lodashGet(props.personalDetailsList, [taskAssigneeAccountID, 'displayName'], ''); const taskAssignee = assigneeDisplayName || LocalePhoneNumber.formatPhoneNumber(assigneeLogin); - const htmlForTaskPreview = taskAssignee ? `@${taskAssignee} ${taskTitle}` : `${taskTitle}`; + const htmlForTaskPreview = + taskAssignee && taskAssigneeAccountID !== 0 ? `@${taskAssignee} ${taskTitle}` : `${taskTitle}`; const isDeletedParentAction = ReportUtils.isCanceledTaskReport(props.taskReport, props.action); if (isDeletedParentAction) {