From f66a020359e94ae39629b73edf489a6f45d10426 Mon Sep 17 00:00:00 2001 From: Gabriel mermelstein Date: Wed, 12 Jun 2024 17:04:56 +0200 Subject: [PATCH] stop saving endpoint in localStorage --- src/App.tsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9f510fb..42323e2 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -72,11 +72,6 @@ function App() { const name = GetUser(); setUsername(name); - const endpoint = localStorage.getItem("apiEndpoint"); - if (endpoint && !import.meta.env.VITE_API_ENDPOINT) { - setApiEndpoint(endpoint); - } - const localCommunity = localStorage.getItem("community"); console.log("current community", localCommunity); setCommunity(localCommunity ? JSON.parse(localCommunity) : undefined); @@ -277,10 +272,6 @@ function App() { localStorage.setItem("community", JSON.stringify(joinedCommunities[index])); }; - const saveSettings = () => { - localStorage.setItem("apiEndpoint", apiEndpoint); - }; - const decodeMsg = (index: number, msg: Message) => { try { if ( @@ -343,7 +334,7 @@ function App() { -