diff --git a/structure/client/components/settings/moderation/WordFilter.js b/structure/client/components/settings/moderation/WordFilter.js index be9152c..b222772 100644 --- a/structure/client/components/settings/moderation/WordFilter.js +++ b/structure/client/components/settings/moderation/WordFilter.js @@ -92,7 +92,7 @@ module.exports = class WordFilter extends FilterSetting { }; setting[method] = resolved.result || []; - index = resolved.changed.length && resolved.method !== 'reset' ? 'S_WORDFILTER_' + method.toUpperCase() + '_' + resolved.method.toUpperCase() : 'S_NO_CHANGE'; + index = resolved.changed.length || resolved.method === 'reset' ? 'S_WORDFILTER_' + method.toUpperCase() + '_' + resolved.method.toUpperCase() : 'S_NO_CHANGE'; langParams = { changed: resolved.changed.join('`, `') || '' }; } else if (['ignore', 'channelignore', 'ignorechannel'].includes(method)) { diff --git a/structure/client/components/settings/moderation/WordWatcher.js b/structure/client/components/settings/moderation/WordWatcher.js index 5ed03d5..abdf784 100644 --- a/structure/client/components/settings/moderation/WordWatcher.js +++ b/structure/client/components/settings/moderation/WordWatcher.js @@ -101,7 +101,7 @@ module.exports = class WordWatcher extends Setting { } else if (result) { setting.words = result.result; - index = result.changed.length && result.method !== 'reset' ? `S_WORDWATCHER_${result.method.toUpperCase()}` : 'S_NO_CHANGE'; + index = result.changed.length || result.method === 'reset' ? `S_WORDWATCHER_${result.method.toUpperCase()}` : 'S_NO_CHANGE'; langParams.changes = result.changed.join('**, **'); } else {