logging
This commit is contained in:
parent
c9bbb8c163
commit
e70b9e5494
@ -119,6 +119,7 @@ class Main extends Component {
|
||||
</button>
|
||||
}
|
||||
render(){
|
||||
console.log(this.state.login_status);
|
||||
let photos_gallery = [];
|
||||
let photos_carousel = [];
|
||||
if(this.state.gallery_open !== undefined){
|
||||
@ -169,7 +170,7 @@ class Main extends Component {
|
||||
<a class="nav-link" href="#login">Přihlašování</a>
|
||||
</li>
|
||||
}
|
||||
{Object.keys(this.state.login_status) > 1 &&
|
||||
{Object.keys(this.state.login_status).length > 0 &&
|
||||
<li>
|
||||
Přihlášen {this.state.login_status.first_name} {this.state.login_status.last_name} <a href="/api/logout">Odhlásit</a>
|
||||
</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user