diff --git a/admin_panel/src/Panel.tsx b/admin_panel/src/Panel.tsx index 2997e6c..b1e8aa0 100644 --- a/admin_panel/src/Panel.tsx +++ b/admin_panel/src/Panel.tsx @@ -23,9 +23,6 @@ const POST = z.object({ enclosure: z.nullable(z.array(z.string())) }) - - - const Panel = () => { const [posts, setPosts] = useState[]>([]) const [loading, setLoading] = useState(false) @@ -62,6 +59,9 @@ const Panel = () => { if ((e.status == 401 || e.status == 400) && await e.text() == "missing or malformed JWT") { window.location.href = "/admin/login" } else { + if (e.status == 200) { + setVerifyli([]) + } alert(e.statusText) } })