diff --git a/client/src/app/routes/DashboardRoutes.tsx b/client/src/app/routes/DashboardRoutes.tsx index 6ba9be8c0..f17f22805 100644 --- a/client/src/app/routes/DashboardRoutes.tsx +++ b/client/src/app/routes/DashboardRoutes.tsx @@ -43,6 +43,10 @@ export default function DashboardRoutes() { } else { setBackground(null); } + + return () => { + setBackground(null); + }; }, [user]); if (hasVerifiedEmail === false) {