aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx
index 3464fb04e..ed809c7b3 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/templates/qr/index.tsx
@@ -28,6 +28,7 @@ import {
} from "../../../../hooks/templates.js";
import { NotFoundPageOrAdminCreate } from "../../../notfound/index.js";
import { QrPage } from "./QrPage.js";
+import { LoginPage } from "../../../login/index.js";
export type Entity = TalerMerchantApi.TransferInformation;
interface Props {
@@ -49,8 +50,11 @@ export default function TemplateQrPage({
case HttpStatusCode.NotFound: {
return <NotFoundPageOrAdminCreate />
}
+ case HttpStatusCode.Unauthorized: {
+ return <LoginPage />
+ }
default: {
- assertUnreachable(result.case)
+ assertUnreachable(result)
}
}
}