From 3c54a90c0c1631f1834dcd8e7d1a6c7399303c82 Mon Sep 17 00:00:00 2001 From: Navy Date: Tue, 1 Sep 2020 23:33:24 +0300 Subject: [PATCH] fix for empty value for thresholds --- .../client/components/settings/moderation/AutoModeration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/client/components/settings/moderation/AutoModeration.js b/structure/client/components/settings/moderation/AutoModeration.js index 1ea4a21..6caf51a 100644 --- a/structure/client/components/settings/moderation/AutoModeration.js +++ b/structure/client/components/settings/moderation/AutoModeration.js @@ -149,7 +149,7 @@ class AutoModerationSetting extends Setting { value: Object.entries(setting.thresholds).reduce((acc, [points, action]) => { acc.push(`**${points}:** \`${action.type}\`${action.length ? ', ' + resolver.timeAgo(action.length) : ''}`); return acc; - }, []).join('\n') + }, []).join('\n') || '`N/A`' } ]; }