diff --git a/src/pages/tasks/NewTaskPage.js b/src/pages/tasks/NewTaskPage.js index d6e13218423d..efeca6b790c8 100644 --- a/src/pages/tasks/NewTaskPage.js +++ b/src/pages/tasks/NewTaskPage.js @@ -15,6 +15,7 @@ import ROUTES from '../../ROUTES'; import TaskSelectorLink from '../../components/TaskSelectorLink'; import reportPropTypes from '../reportPropTypes'; import * as TaskUtils from '../../libs/actions/Task'; +import * as OptionsListUtils from '../../libs/OptionsListUtils'; import FormAlertWithSubmitButton from '../../components/FormAlertWithSubmitButton'; const propTypes = { @@ -76,7 +77,7 @@ const NewTaskPage = (props) => { // If we have an assignee, we want to set the assignee data // If there's an issue with the assignee chosen, we want to notify the user if (props.task.assignee) { - const assigneeDetails = lodashGet(props.personalDetails, props.task.assignee); + const assigneeDetails = lodashGet(OptionsListUtils.getPersonalDetailsForLogins([props.task.assignee], props.personalDetails), props.task.assignee); if (!assigneeDetails) { setSubmitError(true); return setErrorMessage(props.translate('newTaskPage.assigneeError'));