From 5834fd556891f10f293d32e3b1b9f91bd8b7cbcd Mon Sep 17 00:00:00 2001 From: Inbestigator <119569726+Inbestigator@users.noreply.github.com> Date: Sun, 9 Jun 2024 13:04:13 -0700 Subject: [PATCH] Update src/plugins/betterBanReasons/index.tsx Co-authored-by: vee --- src/plugins/betterBanReasons/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/betterBanReasons/index.tsx b/src/plugins/betterBanReasons/index.tsx index e3a440bfa..1cae47eed 100644 --- a/src/plugins/betterBanReasons/index.tsx +++ b/src/plugins/betterBanReasons/index.tsx @@ -10,11 +10,7 @@ import definePlugin, { OptionType } from "@utils/types"; import { Button, Forms, TextInput, useEffect, useState } from "@webpack/common"; function ReasonsComponent() { - const [reasons, setReasons] = useState(settings.store.reasons as string[]); - - useEffect(() => { - settings.store.reasons = reasons; - }, [reasons]); + const { reasons } = settings.use(["reasons"]); return (