diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/token')
-rw-r--r-- | packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx index 36ba10e30..768e21325 100644 --- a/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx +++ b/packages/merchant-backoffice-ui/src/paths/instance/token/index.tsx @@ -25,6 +25,7 @@ import { useInstanceDetails } from "../../../hooks/instance.js"; import { Notification } from "../../../utils/types.js"; import { LoginPage } from "../../login/index.js"; import { DetailPage } from "./DetailPage.js"; +import { NotFoundPageOrAdminCreate } from "../../notfound/index.js"; interface Props { onChange: () => void; @@ -50,8 +51,11 @@ export default function Token({ case HttpStatusCode.Unauthorized: { return <LoginPage /> } + case HttpStatusCode.NotFound: { + return <NotFoundPageOrAdminCreate />; + } default: { - assertUnreachable(result.case) + assertUnreachable(result) } } } |