diff --git a/src/components/ReportActionItem/TaskPreview.tsx b/src/components/ReportActionItem/TaskPreview.tsx index be64dfd60f59..ca1324a31fa7 100644 --- a/src/components/ReportActionItem/TaskPreview.tsx +++ b/src/components/ReportActionItem/TaskPreview.tsx @@ -72,9 +72,9 @@ function TaskPreview({taskReport, taskReportID, action, contextMenuAnchor, chatR ? taskReport?.stateNum === CONST.REPORT.STATE_NUM.APPROVED && taskReport.statusNum === CONST.REPORT.STATUS_NUM.APPROVED : action?.childStateNum === CONST.REPORT.STATE_NUM.APPROVED && action?.childStatusNum === CONST.REPORT.STATUS_NUM.APPROVED; const taskTitle = Str.htmlEncode(TaskUtils.getTaskTitle(taskReportID, action?.childReportName ?? '')); - const taskAssigneeAccountID = Task.getTaskAssigneeAccountID(taskReport) ?? action?.childManagerAccountID ?? '-1'; + const taskAssigneeAccountID = Task.getTaskAssigneeAccountID(taskReport) ?? action?.childManagerAccountID ?? -1; const htmlForTaskPreview = - taskAssigneeAccountID !== 0 ? ` ${taskTitle}` : `${taskTitle}`; + taskAssigneeAccountID > 0 ? ` ${taskTitle}` : `${taskTitle}`; const isDeletedParentAction = ReportUtils.isCanceledTaskReport(taskReport, action); if (isDeletedParentAction) { @@ -94,20 +94,22 @@ function TaskPreview({taskReport, taskReportID, action, contextMenuAnchor, chatR accessibilityLabel={translate('task.task')} > - { - if (isTaskCompleted) { - Task.reopenTask(taskReport); - } else { - Task.completeTask(taskReport); - } - })} - accessibilityLabel={translate('task.task')} - /> + + { + if (isTaskCompleted) { + Task.reopenTask(taskReport); + } else { + Task.completeTask(taskReport); + } + })} + accessibilityLabel={translate('task.task')} + /> + ${htmlForTaskPreview}` : htmlForTaskPreview} /> width: 1, }, + taskCheckboxWrapper: { + height: variables.fontSizeNormalHeight, + ...flex.justifyContentCenter, + }, + taskCheckbox: { height: 16, width: 16,