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,