fix Navbar User Icon after logout

This commit is contained in:
Tim
2025-06-22 12:17:34 +02:00
parent 5f5b3ed7a9
commit 84c95d0ff6

View File

@@ -124,6 +124,9 @@ export default function NavBar() {
if (user !== undefined && user !== null) {
setAvatarName(user.email.toUpperCase());
}
if (!user) {
setAvatarName('');
}
}, [user]);
const handleSearch = (_: React.SyntheticEvent, value: string | null) => {