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:
parent
82874b2222
commit
3e6ccd07d1
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue