diff --git a/src/libs/actions/Task.js b/src/libs/actions/Task.js index e884a4d7a6b3..ef998d6dac8d 100644 --- a/src/libs/actions/Task.js +++ b/src/libs/actions/Task.js @@ -222,7 +222,7 @@ function createTaskAndNavigate(parentReportID, title, description, assigneeEmail {optimisticData, successData, failureData}, ); - Navigation.dismissModal(optimisticTaskReport.reportID); + Navigation.dismissModal(parentReportID); } /**