Skip to content

Commit 02efa7c

Browse files
committed
fixes the issue with guest loggin
1 parent 846c4c5 commit 02efa7c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/src/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const App = (): JSX.Element => {
6868
}
6969
});
7070
}
71-
}, [state.isLoggedIn]);
71+
}, []);
7272
useEffect(() => {
7373
// provide config properties to legacy projects so new edits can be auto saved
7474
// if (state.config === undefined) {

app/src/components/right/LoginButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export default function LoginButton() {
3232
window.location.href = '/index-prod.html'
3333
} else {
3434
window.location.href = 'http://localhost:8080/#/login';
35-
dispatch(toggleLoggedIn())
35+
if(state.isLoggedIn){
36+
dispatch(toggleLoggedIn())
37+
}
38+
3639
}
3740
}
3841
if (state.isLoggedIn) {

0 commit comments

Comments
 (0)