From 7960530c0987b867f9aded98322bd96f64c8e23d Mon Sep 17 00:00:00 2001 From: vyneer Date: Fri, 6 Oct 2023 09:47:06 +0300 Subject: [PATCH] chore: adjust the "msg was filtered" error msg --- assets/chat/js/chat.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index fa5e3681..880a78cd 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -1204,13 +1204,8 @@ class Chat { ); break; case 'bannedphrase': { - const phraseCountText = - data.filtered.length === 1 - ? 'this banned phrase' - : 'these banned phrases'; - const filteredPretty = data.filtered.map((p) => `"${p}"`).join(', '); message = MessageBuilder.error( - `Your message was filtered because it contained ${phraseCountText}: ${filteredPretty}.`, + `Your message was filtered because it contained this banned phrase: "${data.filtered}".`, ); break; }