Fondation

This commit is contained in:
alma 2026-01-17 01:39:05 +01:00
parent 155d9a63d8
commit 45f2fcb585

View File

@ -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,