mirror of
https://github.com/logos-messaging/logos-messaging-frontend.git
synced 2026-01-03 14:23:10 +00:00
stop saving endpoint in localStorage
This commit is contained in:
parent
1cd19c108e
commit
f66a020359
11
src/App.tsx
11
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() {
|
||||
</div>
|
||||
<DialogFooter>
|
||||
<DialogClose asChild>
|
||||
<Button type="submit" onClick={saveSettings}>
|
||||
<Button type="submit">
|
||||
Save
|
||||
</Button>
|
||||
</DialogClose>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user