From 877a4bb1328661ae2e97d764c26e2bc0ff1f46fe Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 7 Apr 2023 18:59:47 -0300
Subject: fix #7743

---
 packages/demobank-ui/src/pages/BankFrame.tsx | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

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

diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx b/packages/demobank-ui/src/pages/BankFrame.tsx
index d1f7250b9..c4b18189f 100644
--- a/packages/demobank-ui/src/pages/BankFrame.tsx
+++ b/packages/demobank-ui/src/pages/BankFrame.tsx
@@ -255,19 +255,18 @@ function ErrorBanner({
 function StatusBanner(): VNode | null {
   const [info, setInfo] = useState<TranslatedString>();
   const [error, setError] = useState<ErrorMessage>();
-  console.log("render", info, error);
   function listenError(e: ErrorMessage) {
     setError(e);
   }
   function listenInfo(m: TranslatedString) {
-    console.log("update info", m, info);
     setInfo(m);
   }
   useEffect(() => {
-    console.log("sadasdsad", infoListeners.length);
+    /**
+     * Refactor this to reuse the pattern observable/listener
+     */
     errorListeners.push(listenError);
     infoListeners.push(listenInfo);
-    console.log("sadasdsad", infoListeners.length);
     return function unsuscribe() {
       const idx = infoListeners.findIndex((d) => d === listenInfo);
       if (idx !== -1) {
@@ -277,7 +276,6 @@ function StatusBanner(): VNode | null {
       if (idx2 !== -1) {
         errorListeners.splice(idx2, 1);
       }
-      console.log("unload", idx);
     };
   }, []);
   return (
-- 
cgit v1.2.3

