Commit b992e512 authored by Sumaiyya Burney's avatar Sumaiyya Burney

Fixes logout dropdown errors

parent a5eb703a
...@@ -18,8 +18,11 @@ function LogoutButton(){ ...@@ -18,8 +18,11 @@ function LogoutButton(){
<div> <div>
<Dropdown> <Dropdown>
<Dropdown.Toggle className="dropdown"> <Dropdown.Toggle className="dropdown">
<img className="profile-pic" src={user.imageUrl}/> {user != null ?
{user.name} <p><img className="profile-pic" src={user.imageUrl}/>
{user.name}</p>
: <p>User</p>
}
</Dropdown.Toggle> </Dropdown.Toggle>
<Dropdown.Menu> <Dropdown.Menu>
<Dropdown.Item>Profile</Dropdown.Item> <Dropdown.Item>Profile</Dropdown.Item>
...@@ -28,6 +31,7 @@ function LogoutButton(){ ...@@ -28,6 +31,7 @@ function LogoutButton(){
clientId= {clientId} clientId= {clientId}
buttonText="Logout" buttonText="Logout"
onLogoutSuccess={onSuccessLogout} onLogoutSuccess={onSuccessLogout}
isSignedIn={false}
/></Dropdown.Item> /></Dropdown.Item>
</Dropdown.Menu> </Dropdown.Menu>
</Dropdown> </Dropdown>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment