diff --git a/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml b/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml
index bc8d8b2dce..e5991f80fe 100644
--- a/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml
+++ b/DigitalLearningSolutions.Web/Views/SuperAdmin/Users/UserCentreAccounts.cshtml
@@ -58,7 +58,15 @@
{
if (centreRow.CentreId == admin.CentreId)
{
- Admin@(admin.Active ? "" : "(Inactive)")
+ bool IsDelegateActive = false;
+ foreach (var delegates in Model.UserEntity.DelegateAccounts)
+ {
+ if (centreRow.CentreId == delegates.CentreId)
+ {
+ IsDelegateActive = delegates.Active;
+ }
+ }
+ Admin@(!admin.Active && IsDelegateActive ? "(Inactive)" : "")
}
}
}