We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 846c4c5 commit 02efa7cCopy full SHA for 02efa7c
app/src/components/App.tsx
@@ -68,7 +68,7 @@ export const App = (): JSX.Element => {
68
}
69
});
70
71
- }, [state.isLoggedIn]);
+ }, []);
72
useEffect(() => {
73
// provide config properties to legacy projects so new edits can be auto saved
74
// if (state.config === undefined) {
app/src/components/right/LoginButton.tsx
@@ -32,7 +32,10 @@ export default function LoginButton() {
32
window.location.href = '/index-prod.html'
33
} else {
34
window.location.href = 'http://localhost:8080/#/login';
35
- dispatch(toggleLoggedIn())
+ if(state.isLoggedIn){
36
+ dispatch(toggleLoggedIn())
37
+ }
38
+
39
40
41
if (state.isLoggedIn) {
0 commit comments