featuer change for calendar
This commit is contained in:
@@ -35,10 +35,10 @@ function Header({ onMenuClick }: HeaderProps) {
|
||||
|
||||
// Fetch personal warning count for badge
|
||||
useEffect(() => {
|
||||
if (\!user) return;
|
||||
if (!user) return;
|
||||
atemschutzApi.getMyStatus()
|
||||
.then((record) => {
|
||||
if (\!record) return;
|
||||
if (!record) return;
|
||||
let count = 0;
|
||||
const THRESHOLD = 60;
|
||||
if (record.untersuchung_tage_rest !== null && record.untersuchung_tage_rest <= THRESHOLD) count++;
|
||||
@@ -73,7 +73,7 @@ function Header({ onMenuClick }: HeaderProps) {
|
||||
|
||||
// Get initials for avatar
|
||||
const getInitials = () => {
|
||||
if (\!user) return '?';
|
||||
if (!user) return '?';
|
||||
const initials = (user.given_name?.[0] || '') + (user.family_name?.[0] || '');
|
||||
return initials || user.name?.[0] || '?';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user