aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
index 5a8be71b0..23bc95943 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/list/index.tsx
@@ -38,6 +38,7 @@ import {
import { Notification } from "../../../../utils/types.js";
import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js";
import { ListPage } from "./ListPage.js";
+import { LoginPage } from "../../../login/index.js";
interface Props {
onCreate: () => void;
@@ -69,8 +70,11 @@ export default function ListTemplates({
case HttpStatusCode.NotFound: {
return <NotFoundPageOrAdminCreate />
}
+ case HttpStatusCode.Unauthorized: {
+ return <LoginPage />
+ }
default: {
- assertUnreachable(result.case)
+ assertUnreachable(result)
}
}
}