Don't reset turnstile when it's never loaded
This commit is contained in:
@@ -229,8 +229,10 @@ export default function () {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-expect-error
|
if (!logged_in) {
|
||||||
turnstile.reset();
|
// @ts-expect-error
|
||||||
|
turnstile.reset();
|
||||||
|
}
|
||||||
|
|
||||||
return toast({
|
return toast({
|
||||||
description: "Failed to upload file",
|
description: "Failed to upload file",
|
||||||
|
|||||||
Reference in New Issue
Block a user