From c7b33b5636edb06dc0c160d3e3be10caee9a16b1 Mon Sep 17 00:00:00 2001
From: Ina <inamar@stud.ntnu.no>
Date: Tue, 30 Apr 2024 09:26:36 +0200
Subject: [PATCH] refactor: remove unused watch

---
 src/components/InteractiveSpare.vue | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/src/components/InteractiveSpare.vue b/src/components/InteractiveSpare.vue
index 44a50ec..e494738 100644
--- a/src/components/InteractiveSpare.vue
+++ b/src/components/InteractiveSpare.vue
@@ -113,14 +113,8 @@ const clearSpeeches = () => {
 
 const modalClosed = () => {
     isModalOpen.value = false
+    currentSpeechIndex.value = -1
 }
-
-watch(
-    () => props.isModalOpen,
-    (newVal) => {
-        isModalOpen.value = newVal
-    }
-)
 </script>
 <style scoped>
 /* CSS talk bubble */
-- 
GitLab