diff --git a/src/components/Layout/components/Header.tsx b/src/components/Layout/components/Header.tsx index 2a5de39..6688e04 100644 --- a/src/components/Layout/components/Header.tsx +++ b/src/components/Layout/components/Header.tsx @@ -15,8 +15,13 @@ const Header = () => { const pathname = usePathname(); - const HeaderButtonGroup = () => - pathname === ROUTES.LANDING ? : ; + const HeaderButtonGroup = () => { + if (!pathname) return ; + if (pathname === ROUTES.LANDING) return ; + if (pathname.startsWith('/terms')) + return refreshToken ? : ; + return ; + }; return (