diff --git a/src/client/modules/Tasks/TaskDetails/index.jsx b/src/client/modules/Tasks/TaskDetails/index.jsx index d53e3ad43a4..b0ef22b1bb2 100644 --- a/src/client/modules/Tasks/TaskDetails/index.jsx +++ b/src/client/modules/Tasks/TaskDetails/index.jsx @@ -17,14 +17,9 @@ const StyledTag = styled(Tag)` margin-bottom: ${SPACING.SCALE_2}; ` -const getCompany = (task) => { - return task?.investmentProject?.investorCompany -} - const TaskDetails = ({ task, breadcrumbs }) => { const { taskId } = useParams() - const company = getCompany(task) const taskTitle = task ? task.title : '' const archivedTag = task?.archived && ( @@ -48,7 +43,7 @@ const TaskDetails = ({ task, breadcrumbs }) => { onSuccessDispatch: TASK_DETAILS_LOADED, }} > - {() => task && } + {() => task && } )