Skip to content

Commit

Permalink
(#12) - Ensure logout is not shown when not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
robcalcroft committed Apr 23, 2016
1 parent a9204fc commit 4087ca1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Nav/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const links = (
<div>
<li><a href="http://github.com/robcalcroft/mondoweb">About</a></li>
<li><a href="http://getmondo.co.uk">Help</a></li>
<li><a onClick={logout} href="#">Logout</a></li>
{localStorage.mondo_access_token ? (
<li><a onClick={logout} href="#">Logout</a></li>
) : ''}
</div>
);

Expand Down

0 comments on commit 4087ca1

Please sign in to comment.