From 166a940f024c7a6de28c21de914df68ca3417626 Mon Sep 17 00:00:00 2001 From: Marie Date: Sat, 23 Dec 2023 04:26:23 +0100 Subject: [PATCH] chore: lint --- packages/frontend/src/components/MkSignupDialog.vue | 2 +- packages/frontend/src/pages/instance-info.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkSignupDialog.vue b/packages/frontend/src/components/MkSignupDialog.vue index c8020c663..6efdced69 100644 --- a/packages/frontend/src/components/MkSignupDialog.vue +++ b/packages/frontend/src/components/MkSignupDialog.vue @@ -65,7 +65,7 @@ function onSignupEmailPending() { } function onApprovalPending() { - dialog.close(); + dialog.value.close(); } diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 3e1bc31df..683a31c36 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -206,10 +206,10 @@ async function toggleSuspend(): Promise { } async function toggleNSFW(): Promise { - if (!instance) throw new Error('No instance?'); + if (!instance.value) throw new Error('No instance?'); await os.api('admin/federation/update-instance', { - host: instance.host, - isNSFW: isNSFW, + host: instance.value.host, + isNSFW: isNSFW.value, }); }