From ba8b40c9150586982e42e76d364d76202627bd6f Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 10 Feb 2023 09:51:37 -0300
Subject: business account

---
 packages/demobank-ui/src/pages/HomePage.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(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 e60732d42..76eb8d515 100644
--- a/packages/demobank-ui/src/pages/HomePage.tsx
+++ b/packages/demobank-ui/src/pages/HomePage.tsx
@@ -50,6 +50,7 @@ export function HomePage({ onRegister }: { onRegister: () => void }): VNode {
   }
 
   function saveErrorAndLogout(error: PageStateType["error"]): void {
+    console.log("rrot", error);
     saveError(error);
     backend.logOut();
   }
@@ -123,6 +124,7 @@ function handleNotOkResult(
   return function handleNotOkResult2<T, E>(
     result: HttpResponsePaginated<T, E>,
   ): VNode {
+    console.log("qweqwe", JSON.stringify(result, undefined, 2));
     if (result.clientError && result.isUnauthorized) {
       onErrorHandler({
         title: i18n.str`Wrong credentials for "${account}"`,
@@ -139,7 +141,7 @@ function handleNotOkResult(
     if (!result.ok) {
       onErrorHandler({
         title: i18n.str`The backend reported a problem: HTTP status #${result.status}`,
-        description: `Diagnostic from ${result.info?.url.href} is "${result.message}"`,
+        description: `Diagnostic from ${result.info?.url} is "${result.message}"`,
         debug: JSON.stringify(result.error),
       });
       return <LoginForm onRegister={onRegister} />;
-- 
cgit v1.2.3

