Skip to content

Commit

Permalink
fix: logout button appears when logged out (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
saintnoodle authored Mar 3, 2024
1 parent 470da94 commit b4a3e7a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/src/components/layout/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ export default function Header({ styles }: { styles: LayoutStyles }) {
setState={setState}
/>
</Offcanvas.Body>
<div className="d-flex bottom-0 pb-2 px-4 d-lg-none">
<SignOut className="w-100" />
</div>
{user && (
<div className="d-flex bottom-0 pb-2 px-4 d-lg-none">
<SignOut className="w-100" />
</div>
)}
</Navbar.Offcanvas>
<UserArea user={user} dropdownMenuStyle={dropdownMenuStyle} />
</Container>
Expand Down

0 comments on commit b4a3e7a

Please sign in to comment.