From 58323fc496d0fe2a34884b289860264ffd1310e8 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Thu, 4 Apr 2024 13:26:46 -0300
Subject: handle not found cases

---
 .../merchant-backoffice-ui/src/paths/instance/details/index.tsx     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx')

diff --git a/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx b/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
index 5b6564485..bb1ee944b 100644
--- a/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
+++ b/packages/merchant-backoffice-ui/src/paths/instance/details/index.tsx
@@ -24,6 +24,7 @@ import { useSessionContext } from "../../../context/session.js";
 import { useInstanceDetails } from "../../../hooks/instance.js";
 import { LoginPage } from "../../login/index.js";
 import { DetailPage } from "./DetailPage.js";
+import { NotFoundPageOrAdminCreate } from "../../notfound/index.js";
 
 interface Props {
   onUpdate: () => void;
@@ -50,8 +51,11 @@ export default function Detail({
       case HttpStatusCode.Unauthorized: {
         return <LoginPage />
       }
+      case HttpStatusCode.NotFound: {
+        return <NotFoundPageOrAdminCreate />;
+      }
       default: {
-        assertUnreachable(result.case)
+        assertUnreachable(result)
       }
     }
   }
-- 
cgit v1.2.3

