From b7f06f28779872f64341942e6afab3090f3beee2 Mon Sep 17 00:00:00 2001
From: dakkar <dakkar@thenautilus.net>
Date: Mon, 10 Feb 2025 11:59:38 +0000
Subject: prevent a `ReferenceError`

before, we got:

> ReferenceError: can't access lexical declaration 'followRequestDone'
> before initialization

(of course in non-dev mode, `followRequestDone` had a different name)
---
 packages/frontend/src/components/MkNotification.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/frontend/src/components/MkNotification.vue')

diff --git a/packages/frontend/src/components/MkNotification.vue b/packages/frontend/src/components/MkNotification.vue
index f979287bdd..a910151e42 100644
--- a/packages/frontend/src/components/MkNotification.vue
+++ b/packages/frontend/src/components/MkNotification.vue
@@ -210,6 +210,8 @@ const props = withDefaults(defineProps<{
 
 const userDetailed: Ref<UserDetailed | null> = ref(null);
 
+const followRequestDone = ref(true);
+
 // watch() is required because computed() doesn't support async.
 watch(props, async () => {
 	const type = props.notification.type;
@@ -242,8 +244,6 @@ const exportEntityName = {
 	userList: i18n.ts.lists,
 } as const satisfies Record<ExportCompletedNotification['exportedEntity'], string>;
 
-const followRequestDone = ref(true);
-
 const acceptFollowRequest = () => {
 	if (!('user' in props.notification)) return;
 	followRequestDone.value = true;
-- 
cgit v1.2.3-freya

