Skip to content

Commit

Permalink
revert(Header): Remove return for steak page
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 7, 2024
1 parent dab55f7 commit b31635d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ const Header = () => {
// State for Dialog visibility
const [openConfirmDialog, setOpenConfirmDialog] = useState(false)

// Show back button only on pages other than Home
const showBackButton = location.pathname !== '/'
// Show back button only on pages other than Home and Streak
const showBackButton =
location.pathname !== '/' && location.pathname !== '/streak'

// Streak count (There may not have a user logged in)
const streakCount = user?.streak?.count || 0
Expand Down

0 comments on commit b31635d

Please sign in to comment.