From 189f0eec758fc272a9428caca4ac495ee33adf6e Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Sat, 1 Mar 2025 13:19:02 +0100 Subject: [PATCH] Fixed readOnly status for calendar --- stores/CalendarStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts index b76ebcd..b678d44 100644 --- a/stores/CalendarStore.ts +++ b/stores/CalendarStore.ts @@ -52,7 +52,7 @@ export const useCalendar = defineStore("calendar", () => { function setReadStatus(gmId: string) { // If the user is not logged in, or the calendar is not owned by the user, it's read-only - isReadOnly.value = (!user) || (gmId !== user.value?.id) + isReadOnly.value = !user.value || gmId !== user.value.id } /**