Reload on actions
This commit is contained in:
parent
486762cc3d
commit
36310a727a
@ -73,6 +73,7 @@ export default function (props: AppealCardProps) {
|
||||
|
||||
onClose();
|
||||
setLoading(false);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -22,6 +22,7 @@ import { useState } from "react";
|
||||
|
||||
export default function (props: GameAppealProps) {
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
async function performAction(action: "accept" | "deny"): Promise<void> {
|
||||
setLoading(true);
|
||||
const statsReduction = parseInt(
|
||||
@ -56,6 +57,7 @@ export default function (props: GameAppealProps) {
|
||||
);
|
||||
|
||||
setLoading(false);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
const { isOpen, onClose, onOpen } = useDisclosure();
|
||||
|
@ -70,6 +70,7 @@ export default function (props: ReportCardProps) {
|
||||
title: "Success",
|
||||
});
|
||||
setLoading(false);
|
||||
location.reload();
|
||||
}
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user