rename content into message for notifications
This commit is contained in:
1 parent
ef30e27ad7
commit
d23fd55134
3 files changed
+11
-9
No files matched your search
@@ -40,7 +40,7 @@ function Header() {
|
||||
|
||||
const data: Notification[] = notifData || [];
|
||||
setNotifications(data);
|
||||
const hasUnread = data.some(n => n.pivot && n.pivot.unread === 1);
|
||||
const hasUnread = data.some(n => n.read_at === null);
|
||||
setunreadNotification(hasUnread);
|
||||
} catch (err) {
|
||||
console.error("Erreur initialisation Header:", err);
|
||||
|
||||
Reference in new issue
Block a user