From eb35e1285012e2814dd3eb3220de205077d1e437 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:34 -0400 Subject: [PATCH] Update appeals page in place instead of reloading --- app/routes/appeals.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/appeals.tsx b/app/routes/appeals.tsx index fb6f3ff..793f19a 100644 --- a/app/routes/appeals.tsx +++ b/app/routes/appeals.tsx @@ -133,8 +133,8 @@ export default function () { }); onClose(); - await new Promise((p) => setTimeout(p, 5000)); - location.reload(); + pageProps.can_appeal = !pageProps.can_appeal; + pageProps.disabled = !pageProps.disabled; } return showSuccess ? (