diff --git a/apps/www/src/lib/registry/default/ui/sidebar/SidebarProvider.vue b/apps/www/src/lib/registry/default/ui/sidebar/SidebarProvider.vue index 2b1c4f19f..8f06c67b2 100644 --- a/apps/www/src/lib/registry/default/ui/sidebar/SidebarProvider.vue +++ b/apps/www/src/lib/registry/default/ui/sidebar/SidebarProvider.vue @@ -30,7 +30,7 @@ function setOpen(value: boolean) { open.value = value // emits('update:open', value) // This sets the cookie to keep the sidebar state. - document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}` + document.cookie = `${SIDEBAR_COOKIE_NAME}=${open.value}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}` } function setOpenMobile(value: boolean) { diff --git a/apps/www/src/lib/registry/new-york/ui/sidebar/SidebarProvider.vue b/apps/www/src/lib/registry/new-york/ui/sidebar/SidebarProvider.vue index 2b1c4f19f..8f06c67b2 100644 --- a/apps/www/src/lib/registry/new-york/ui/sidebar/SidebarProvider.vue +++ b/apps/www/src/lib/registry/new-york/ui/sidebar/SidebarProvider.vue @@ -30,7 +30,7 @@ function setOpen(value: boolean) { open.value = value // emits('update:open', value) // This sets the cookie to keep the sidebar state. - document.cookie = `${SIDEBAR_COOKIE_NAME}=${open}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}` + document.cookie = `${SIDEBAR_COOKIE_NAME}=${open.value}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}` } function setOpenMobile(value: boolean) {