1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

check for existing current user in login frame

This commit is contained in:
Sonja Happ 2020-03-20 11:29:36 +01:00
parent 82874b2222
commit 3e6ccd07d1

View file

@ -57,7 +57,7 @@ class Login extends Component {
const token = localStorage.getItem('token');
const currentUser = localStorage.getItem('currentUser');
if (token != null && token !== '' && this.state.currentUser == null) {
if (token != null && token !== '' && currentUser != null && this.state.currentUser == null) {
AppDispatcher.dispatch({
type: 'users/logged-in',
token: token,