fix verify unclean
This commit is contained in:
parent
e050ae9669
commit
2c785fa9de
1 changed files with 3 additions and 3 deletions
|
@ -23,9 +23,6 @@ const POST = z.object({
|
|||
enclosure: z.nullable(z.array(z.string()))
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
const Panel = () => {
|
||||
const [posts, setPosts] = useState<z.infer<typeof POST>[]>([])
|
||||
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)
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue