diff --git a/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs b/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs
index dbe5b0f7b0..1773969563 100644
--- a/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs
+++ b/src/Umbraco.Web.BackOffice/Extensions/HtmlHelperBackOfficeExtensions.cs
@@ -104,7 +104,7 @@ public static class HtmlHelperBackOfficeExtensions
///
///
///
- public static IHtmlContent AngularValueResetPasswordCodeInfoScript(this IHtmlHelper html, object val)
+ public static IHtmlContent AngularValueResetPasswordCodeInfoScript(this IHtmlHelper html, object? val)
{
var sb = new StringBuilder();
sb.AppendLine();
@@ -116,6 +116,8 @@ public static class HtmlHelperBackOfficeExtensions
{
sb.AppendFormat(@"errors.push(""{0}"");", error).AppendLine();
}
+
+ val = null;
}
sb.AppendLine(@"app.value(""resetPasswordCodeInfo"", {");