parent
f499cbfa7b
commit
c2213e0969
|
|
@ -221,7 +221,7 @@ const DashboardLayout = () => {
|
||||||
dispatch(clearUser()); // ✅ Removes from Redux + localStorage
|
dispatch(clearUser()); // ✅ Removes from Redux + localStorage
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Logout error:", error);
|
console.error("Logout error:", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue