diff --git a/src/components/ReportActionItem/TaskView.tsx b/src/components/ReportActionItem/TaskView.tsx index b67c7af4762c..00b591b2ec97 100644 --- a/src/components/ReportActionItem/TaskView.tsx +++ b/src/components/ReportActionItem/TaskView.tsx @@ -55,8 +55,7 @@ function TaskView({report, policy, shouldShowHorizontalRule, ...props}: TaskView }, [report]); const taskTitle = convertToLTR(report.reportName ?? ''); - // @ts-expect-error TODO: Remove this once OptionsListUtils (https://github.com/Expensify/App/issues/24921) is migrated to TypeScript. - const assigneeTooltipDetails = ReportUtils.getDisplayNamesWithTooltips(OptionsListUtils.getPersonalDetailsForAccountIDs([report.managerID], props.personalDetails), false); + const assigneeTooltipDetails = ReportUtils.getDisplayNamesWithTooltips(OptionsListUtils.getPersonalDetailsForAccountIDs(report.managerID ? [report.managerID] : [], props.personalDetails), false); const isCompleted = ReportUtils.isCompletedTaskReport(report); const isOpen = ReportUtils.isOpenTaskReport(report); const canModifyTask = Task.canModifyTask(report, props.currentUserPersonalDetails.accountID, policy?.role); @@ -157,8 +156,7 @@ function TaskView({report, policy, shouldShowHorizontalRule, ...props}: TaskView | ImageSourcePropType; +type IconAsset = React.FC | ImageSourcePropType | Icon[]; export default IconAsset;