diff --git a/Childrens-Social-Care-CPD/Views/Content/Index.cshtml b/Childrens-Social-Care-CPD/Views/Content/Index.cshtml
index 63296893..64646091 100644
--- a/Childrens-Social-Care-CPD/Views/Content/Index.cshtml
+++ b/Childrens-Social-Care-CPD/Views/Content/Index.cshtml
@@ -42,22 +42,17 @@
@_relatedContentRenderer.Render(Model.RelatedContent)
@section Scripts {
- @if (ViewData.TryGetValue("StateModel", out var stateModel))
+ @if (ViewData.TryGetValue("StateModel", out var stateModel) && ((StateModel)stateModel).IncludeMediaPlayer)
{
- if (((StateModel)stateModel).IncludeMediaPlayer)
- {
-
-
- }
+
+
}
}
@section Head {
- @if (ViewData.TryGetValue("StateModel", out var stateModel))
+ @if (ViewData.TryGetValue("StateModel", out var stateModel) && ((StateModel)stateModel).IncludeMediaPlayer)
{
- if (((StateModel)stateModel).IncludeMediaPlayer)
- {
-
- }
+
+
}
}
\ No newline at end of file