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/demobank-ui/src/pages/HomePage.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)

(limited to 'packages/demobank-ui/src/pages/HomePage.tsx')

diff --git a/packages/demobank-ui/src/pages/HomePage.tsx b/packages/demobank-ui/src/pages/HomePage.tsx
index 0a5a61396..d35f4cc6f 100644
--- a/packages/demobank-ui/src/pages/HomePage.tsx
+++ b/packages/demobank-ui/src/pages/HomePage.tsx
@@ -172,6 +172,14 @@ export function handleNotOkResult(
           });
           break;
         }
+        case ErrorType.UNREADABLE: {
+          notifyError({
+            title: i18n.str`Unexpected error.`,
+            description: `Response from ${result.info?.url} is unreadable, http status: ${result.status}`,
+            debug: JSON.stringify(result),
+          });
+          break;
+        }
         case ErrorType.UNEXPECTED: {
           notifyError({
             title: i18n.str`Unexpected error.`,
-- 
cgit v1.2.3

