Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove redundant setLoading calls
  • Loading branch information
regalijan committed Oct 29, 2023
1 parent 2a49ebc commit a153116
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/AppealCard.tsx
Expand Up @@ -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,
Expand All @@ -67,7 +66,7 @@ export default function (props: AppealCardProps & { port?: MessagePort }) {
} catch {
error = "Unknown error";
}
setLoading(false);

toast({
description: error,
duration: 10000,
Expand Down

0 comments on commit a153116

Please sign in to comment.