aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/FormPage/ErrorPage.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pages/FormPage/ErrorPage.tsx b/src/pages/FormPage/ErrorPage.tsx
index 9a7fad9..da336cf 100644
--- a/src/pages/FormPage/ErrorPage.tsx
+++ b/src/pages/FormPage/ErrorPage.tsx
@@ -6,6 +6,7 @@ import React from "react";
import HeaderBar from "../../components/HeaderBar";
import {Form} from "../../api/forms";
+import {clearAuth} from "../../api/auth";
import {selectable, submitStyles, unselectable} from "../../commonStyles";
import Navigation from "./Navigation";
@@ -22,6 +23,8 @@ const refreshStyles = css`
export default function ErrorPage(props: ErrorProps): JSX.Element {
+ clearAuth();
+
return (
<div>
<HeaderBar title={props.form.name} description={props.form.description}/>