diff --git a/frontend/application/app/ClientLayout.tsx b/frontend/application/app/ClientLayout.tsx index fae81a50..5d8fa079 100644 --- a/frontend/application/app/ClientLayout.tsx +++ b/frontend/application/app/ClientLayout.tsx @@ -39,9 +39,10 @@ export default function ClientLayout({ children }: { children: React.ReactNode } const setB2BPortalOpen = useUIStore((state) => state.setB2BPortalOpen); const clearAdvisorData = useUIStore((state) => state.clearAdvisorData); const [isPrescriptionModalOpen, setIsPrescriptionModalOpen] = useState(false); - + const pathname = usePathname(); const router = useRouter(); + const isUtilityRoute = pathname === "/login" || pathname === "/cart"; const fetchProfile = useUserStore((state) => state.fetchProfile); const role = useUserStore((state) => state.role); @@ -166,9 +167,9 @@ export default function ClientLayout({ children }: { children: React.ReactNode } <> -
setCartOpen(true)} onSearch={handleSearch} @@ -177,23 +178,23 @@ export default function ClientLayout({ children }: { children: React.ReactNode }
{children}
-