featuer change for calendar
This commit is contained in:
@@ -120,7 +120,7 @@ const PersonalWarningsBanner: React.FC<PersonalWarningsBannerProps> = ({ user: _
|
||||
|
||||
// ── No atemschutz record for this user ─────────────────────────────────────
|
||||
|
||||
if (\!record) return null;
|
||||
if (!record) return null;
|
||||
|
||||
// ── Build warnings list ────────────────────────────────────────────────────
|
||||
|
||||
|
||||
@@ -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