From cfe7129c4ecaa3057d5e47040f0a9efd8ed0317e Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 7 Apr 2023 18:46:25 -0300
Subject: adding unreadable http response case and removing deprecated fields

---
 packages/merchant-backoffice-ui/src/InstanceRoutes.tsx | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'packages/merchant-backoffice-ui/src/InstanceRoutes.tsx')

diff --git a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx
index b911483a7..aae61bfc3 100644
--- a/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx
+++ b/packages/merchant-backoffice-ui/src/InstanceRoutes.tsx
@@ -178,8 +178,8 @@ export function InstanceRoutes({
           message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
           description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
           details:
-            error.clientError || error.serverError
-              ? error.error?.detail
+            error.type === ErrorType.CLIENT || error.type === ErrorType.SERVER
+              ? error.payload.detail
               : undefined,
           type: "ERROR",
           to,
@@ -608,8 +608,9 @@ function AdminInstanceUpdatePage({
                   message: i18n.str`The backend reported a problem: HTTP status #${error.status}`,
                   description: i18n.str`Diagnostic from ${error.info?.url} is '${error.message}'`,
                   details:
-                    error.clientError || error.serverError
-                      ? error.error?.detail
+                    error.type === ErrorType.CLIENT ||
+                    error.type === ErrorType.SERVER
+                      ? error.payload.detail
                       : undefined,
                   type: "ERROR" as const,
                 };
-- 
cgit v1.2.3

