diff --git a/frontend/src/pages/DashboardPage.jsx b/frontend/src/pages/DashboardPage.jsx index 660dad4..325a8aa 100644 --- a/frontend/src/pages/DashboardPage.jsx +++ b/frontend/src/pages/DashboardPage.jsx @@ -13,7 +13,6 @@ function greeting(name) { export default function DashboardPage() { const { user } = useAuth() - const isModerator = user?.role === 'admin' || user?.role === 'moderator' const [stats, setStats] = useState(null) const [history, setHistory] = useState([]) const [selectedQuizId, setSelectedQuizId] = useState(null) @@ -47,7 +46,7 @@ export default function DashboardPage() { if (histRes.data.length > 0) setSelectedQuizId(histRes.data[0].quiz_id) }).catch(console.error) .finally(() => setLoading(false)) - }, [isModerator]) + }, []) if (loading) return