fix watchers

This commit is contained in:
Michael Genson
2026-03-28 16:17:34 +00:00
parent fcf2b7ef2a
commit 5f28a60d61
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ const { newAnnouncements, allAnnouncements } = useAnnouncements();
const currentAnnouncement = shallowRef(newAnnouncements.value.at(0) || allAnnouncements.at(-1)!);
watch(
() => dialog,
dialog,
() => {
// Once the dialog is opened, mark the current announcement as read
if (dialog.value) {

View File

@@ -55,7 +55,7 @@ export function useAnnouncements() {
}
refreshUnreadAnnouncements();
watch(() => auth.user, () => {
watch(auth.user, () => {
refreshUnreadAnnouncements();
});