diff --git a/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs b/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs index 94b005f1e6..159f2ab034 100644 --- a/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs +++ b/DigitalLearningSolutions.Web/Controllers/LearningPortalController/SelfAssessment.cs @@ -510,7 +510,7 @@ public IActionResult StartAddNewSupervisor(int selfAssessmentId) [Route("/LearningPortal/SelfAssessment/{selfAssessmentId:int}/Supervisors/Add")] public IActionResult AddNewSupervisor(int selfAssessmentId) { - if(TempData[MultiPageFormDataFeature.AddNewSupervisor] == null) + if(TempData[MultiPageFormDataFeature.AddNewSupervisor.TempDataKey] == null) { return RedirectToAction("StatusCode", "LearningSolutions", new { code = (int)HttpStatusCode.Forbidden }); }