diff --git a/package.json b/package.json index b357e25..9caa1ba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.95.5", + "version": "1.95.6", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 96d7b05..53a08ef 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -2287,6 +2287,7 @@ export default function WeeklyView() { // Per-device settings: save to cookie ONLY (not DB) so each device keeps its own value if (DEVICE_SETTINGS_KEYS.includes(key)) { setCookie(`setting_${key}`, String(value)); + setProfile((p: any) => ({ ...p, [key]: value })); // still update profile so rendering reacts immediately return; // Don't write to DB — that would overwrite other devices } // Also persist to device cookie so this device remembers its own preference on reload