From a3aa7d95d09c83794067c47df4a455c0e3f21806 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 7 Apr 2023 17:30:01 -0300
Subject: anon withdrawal confirmation, and fix error with infinity loop

---
 packages/demobank-ui/src/components/app.tsx | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

(limited to 'packages/demobank-ui/src/components/app.tsx')

diff --git a/packages/demobank-ui/src/components/app.tsx b/packages/demobank-ui/src/components/app.tsx
index e024be41b..ef535bb9f 100644
--- a/packages/demobank-ui/src/components/app.tsx
+++ b/packages/demobank-ui/src/components/app.tsx
@@ -48,19 +48,17 @@ const WITH_LOCAL_STORAGE_CACHE = false;
 const App: FunctionalComponent = () => {
   return (
     <TranslationProvider source={strings}>
-      <PageStateProvider>
-        <BackendStateProvider>
-          <SWRConfig
-            value={{
-              provider: WITH_LOCAL_STORAGE_CACHE
-                ? localStorageProvider
-                : undefined,
-            }}
-          >
-            <Routing />
-          </SWRConfig>
-        </BackendStateProvider>
-      </PageStateProvider>
+      <BackendStateProvider>
+        <SWRConfig
+          value={{
+            provider: WITH_LOCAL_STORAGE_CACHE
+              ? localStorageProvider
+              : undefined,
+          }}
+        >
+          <Routing />
+        </SWRConfig>
+      </BackendStateProvider>
     </TranslationProvider>
   );
 };
-- 
cgit v1.2.3

