updated error home link and copy on error page
This commit is contained in:
+11
-7
@@ -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("/");
|
||||
}}
|
||||
>
|
||||
{" "}
|
||||
|
||||
Reference in New Issue
Block a user