From 45b99a476db8789898f09125ee3bf79288c38d10 Mon Sep 17 00:00:00 2001
From: Marie <Marie@kaifa.ch>
Date: Wed, 27 Dec 2023 09:39:59 +0100
Subject: [PATCH] upd: swap `api` out with `apiWithDialog` for word mute saving

Closes #259
---
 packages/frontend/src/pages/settings/mute-block.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/frontend/src/pages/settings/mute-block.vue b/packages/frontend/src/pages/settings/mute-block.vue
index 6419d23a7a..966bf0d443 100644
--- a/packages/frontend/src/pages/settings/mute-block.vue
+++ b/packages/frontend/src/pages/settings/mute-block.vue
@@ -216,11 +216,11 @@ async function toggleBlockItem(item) {
 }
 
 async function saveMutedWords(mutedWords: (string | string[])[]) {
-	await os.api('i/update', { mutedWords });
+	await os.apiWithDialog('i/update', { mutedWords });
 }
 
 async function saveHardMutedWords(hardMutedWords: (string | string[])[]) {
-	await os.api('i/update', { hardMutedWords });
+	await os.apiWithDialog('i/update', { hardMutedWords });
 }
 
 const headerActions = computed(() => []);