aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx
index 1ff4b56cf..5fc8bee93 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/update/index.tsx
@@ -36,6 +36,7 @@ import {
import { Notification } from "../../../../utils/types.js";
import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js";
import { UpdatePage } from "./UpdatePage.js";
+import { LoginPage } from "../../../login/index.js";
export type Entity = TalerMerchantApi.TemplatePatchDetails & WithId;
@@ -65,8 +66,11 @@ export default function UpdateTemplate({
case HttpStatusCode.NotFound: {
return <NotFoundPageOrAdminCreate />
}
+ case HttpStatusCode.Unauthorized: {
+ return <LoginPage />
+ }
default: {
- assertUnreachable(result.case)
+ assertUnreachable(result)
}
}
}