diff --git a/packages/client/src/components/MkAnnouncement.vue b/packages/client/src/components/MkAnnouncement.vue
index 205709d98..89bd734cd 100644
--- a/packages/client/src/components/MkAnnouncement.vue
+++ b/packages/client/src/components/MkAnnouncement.vue
@@ -8,21 +8,13 @@
- {{ i18n.ts.gotIt }}
+ {{
+ i18n.ts.gotIt
+ }}
@@ -32,7 +24,6 @@ import { shallowRef } from "vue";
import MkModal from "@/components/MkModal.vue";
import MkSparkle from "@/components/MkSparkle.vue";
import MkButton from "@/components/MkButton.vue";
-import { version } from "@/config";
import { i18n } from "@/i18n";
import * as os from "@/os";
@@ -44,9 +35,10 @@ const { id, text, title, imageUrl, isGoodNews } = props.announcement;
const modal = shallowRef>();
-function markAsRead() {
+const gotIt = () => {
+ modal.value.close();
os.api("i/read-announcement", { announcementId: id });
-}
+};