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