fix: return a cleanup fn too

This commit is contained in:
zkldi
2022-06-22 11:32:15 +01:00
parent c071404b11
commit c48bd45ab9
@@ -43,6 +43,10 @@ export default function DashboardRoutes() {
} else {
setBackground(null);
}
return () => {
setBackground(null);
};
}, [user]);
if (hasVerifiedEmail === false) {