From a153116071db2d551653a520d77d1af84e5b7857 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Sun, 29 Oct 2023 00:11:33 -0400 Subject: [PATCH] Remove redundant setLoading calls --- components/AppealCard.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/AppealCard.tsx b/components/AppealCard.tsx index f13a002..4bf3757 100644 --- a/components/AppealCard.tsx +++ b/components/AppealCard.tsx @@ -52,7 +52,6 @@ export default function (props: AppealCardProps & { port?: MessagePort }) { }); if (actionReq.ok) { - setLoading(false); toast({ description: `Appeal ${action === "accept" ? "accepted" : "denied"}`, duration: 5000, @@ -67,7 +66,7 @@ export default function (props: AppealCardProps & { port?: MessagePort }) { } catch { error = "Unknown error"; } - setLoading(false); + toast({ description: error, duration: 10000,