diff --git a/app/components/ProgressBar.tsx b/app/components/ProgressBar.tsx index f2a421d..d75c46f 100644 --- a/app/components/ProgressBar.tsx +++ b/app/components/ProgressBar.tsx @@ -8,6 +8,7 @@ export default function ProgressBar() { const [scrollPercentage, setScrollPercentage] = useState(0); const [showBackToTop, setShowBackToTop] = useState(false); const pathname = usePathname(); + const showScrollProgress = pathname.startsWith('/sem') || pathname.startsWith('/quiz/'); useEffect(() => { const handleScroll = () => { @@ -39,7 +40,7 @@ export default function ProgressBar() { return ( <> - {pathname.startsWith('/sem') && ( + {showScrollProgress && (