Remove redundant setLoading calls

This commit is contained in:
Regalijan 2023-10-29 00:11:33 -04:00
parent 2a49ebc845
commit a153116071
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -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,