Resolve warning about unauth state
This commit is contained in:
parent
df99c2fca7
commit
f81d8b46b8
2 changed files with 5 additions and 2 deletions
|
|
@ -59,7 +59,10 @@ const Header = (props: Props) => {
|
|||
<div id="left">
|
||||
<div className="dropdown">
|
||||
<Button type="menu">Menu</Button>
|
||||
<HeaderMenu username={username} logout={logout} />
|
||||
{ (username) ?
|
||||
<HeaderMenu username={username} logout={logout} /> :
|
||||
<HeaderMenu logout={logout} />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div className="push" />
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import AboutModal from '~components/AboutModal'
|
|||
|
||||
|
||||
interface Props {
|
||||
username: string,
|
||||
username?: string,
|
||||
logout: () => void
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue