Fondation
This commit is contained in:
parent
155d9a63d8
commit
45f2fcb585
@ -113,11 +113,7 @@ export function CalendarWidget() {
|
|||||||
// Calculate current event count
|
// Calculate current event count
|
||||||
const currentEventCount = upcomingEvents.length;
|
const currentEventCount = upcomingEvents.length;
|
||||||
|
|
||||||
// Trigger notification if count changed
|
// Always prepare notification items
|
||||||
if (currentEventCount !== lastEventCountRef.current) {
|
|
||||||
lastEventCountRef.current = currentEventCount;
|
|
||||||
|
|
||||||
// Always prepare notification items (even if count hasn't changed)
|
|
||||||
const notificationItems = upcomingEvents.map(event => ({
|
const notificationItems = upcomingEvents.map(event => ({
|
||||||
id: event.id,
|
id: event.id,
|
||||||
title: event.title,
|
title: event.title,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user