From b31635d848e53f459d7c68c8ba6f7ae03d306950 Mon Sep 17 00:00:00 2001 From: ZL Asica <40444637+ZL-Asica@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:57:22 -0600 Subject: [PATCH] revert(Header): Remove return for steak page --- src/components/common/Header.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/common/Header.jsx b/src/components/common/Header.jsx index 01bb8b6..8a13539 100644 --- a/src/components/common/Header.jsx +++ b/src/components/common/Header.jsx @@ -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