updated error home link and copy on error page

This commit is contained in:
2022-11-07 13:30:09 +00:00
parent 6197646b0f
commit 0d5adbc899
10 changed files with 62 additions and 44 deletions
+11 -7
View File
@@ -31,15 +31,19 @@ function Error({ statusCode }, props) {
? `An error ${statusCode} occurred on server`
: t("common:error-page-message")}
</p>
<p className="govuk-body">
{t("common:error-instruction-label")}
</p>
<a
className="govuk-link--no-underline"
className="govuk-link"
onClick={() => {
destroyCookie({}, "pinsUser"),
window.localStorage.clear(),
signOut({
callbackUrl: "/",
});
window.localStorage.clear(),
destroyCookie({}, "pinsUser"),
session != null
? signOut({
callbackUrl: "/",
})
: Router.push("/");
}}
>
{" "}