From 767ce54d8f1607079401ef9dcf306994356567e0 Mon Sep 17 00:00:00 2001 From: Inbestigator Date: Sun, 9 Jun 2024 16:58:35 -0700 Subject: [PATCH] Fixed bug --- src/plugins/betterBanReasons/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/betterBanReasons/index.tsx b/src/plugins/betterBanReasons/index.tsx index ce456db8a..3da7a3640 100644 --- a/src/plugins/betterBanReasons/index.tsx +++ b/src/plugins/betterBanReasons/index.tsx @@ -58,6 +58,7 @@ const settings = definePluginSettings({ reasons: { description: "Your custom reasons", type: OptionType.COMPONENT, + default: [], component: ReasonsComponent, }, otherOptionDefault: { @@ -84,7 +85,7 @@ export default definePlugin({ } ], getReasons() { - return (settings.store.reasons.length() ? settings.store.reasons : [ + return (settings.store.reasons.length ? settings.store.reasons : [ i18n.Messages.BAN_REASON_OPTION_SPAM_ACCOUNT, i18n.Messages.BAN_REASON_OPTION_HACKED_ACCOUNT, i18n.Messages.BAN_REASON_OPTION_BREAKING_RULES