Commit b992e512 authored by Sumaiyya Burney's avatar Sumaiyya Burney

Fixes logout dropdown errors

parent a5eb703a
......@@ -18,8 +18,11 @@ function LogoutButton(){
<div>
<Dropdown>
<Dropdown.Toggle className="dropdown">
<img className="profile-pic" src={user.imageUrl}/>
{user.name}
{user != null ?
<p><img className="profile-pic" src={user.imageUrl}/>
{user.name}</p>
: <p>User</p>
}
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.Item>Profile</Dropdown.Item>
......@@ -28,6 +31,7 @@ function LogoutButton(){
clientId= {clientId}
buttonText="Logout"
onLogoutSuccess={onSuccessLogout}
isSignedIn={false}
/></Dropdown.Item>
</Dropdown.Menu>
</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