From e7b75cf72c4b87885afe3d826117328540f70ad5 Mon Sep 17 00:00:00 2001
From: Tusooa Zhu <tusooa@kazv.moe>
Date: Fri, 29 Apr 2022 20:56:54 -0400
Subject: [PATCH] Port away from Vue2 Vue.set()

---
 src/modules/announcements.js | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/modules/announcements.js b/src/modules/announcements.js
index 2606b786..ab16626c 100644
--- a/src/modules/announcements.js
+++ b/src/modules/announcements.js
@@ -1,5 +1,3 @@
-import { set } from 'vue'
-
 const FETCH_ANNOUNCEMENT_INTERVAL_MS = 1000 * 60 * 5
 
 export const defaultState = {
@@ -9,7 +7,7 @@ export const defaultState = {
 
 export const mutations = {
   setAnnouncements (state, announcements) {
-    set(state, 'announcements', announcements)
+    state.announcements = announcements
   },
   setAnnouncementRead (state, { id, read }) {
     const index = state.announcements.findIndex(a => a.id === id)
@@ -18,10 +16,10 @@ export const mutations = {
       return
     }
 
-    set(state.announcements[index], 'read', read)
+    state.announcements[index].read = read
   },
   setFetchAnnouncementsTimer (state, timer) {
-    set(state, 'fetchAnnouncementsTimer', announcements)
+    state.fetchAnnouncementsTimer = timer
   }
 }