update
This commit is contained in:
@@ -41,7 +41,7 @@ const SidebarStaff: React.FC<SidebarStaffProps> = ({
|
||||
const handleLogout = async () => {
|
||||
try {
|
||||
await logout();
|
||||
navigate('/');
|
||||
// Logout function will redirect to homepage
|
||||
if (isMobile) {
|
||||
setIsMobileOpen(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user