Compare commits
2 Commits
546842c4dd
...
2d9f03c394
| Author | SHA1 | Date | |
|---|---|---|---|
|
2d9f03c394
|
|||
|
c51b29ce57
|
@@ -112,9 +112,9 @@ export default function () {
|
|||||||
if (!logged_in) {
|
if (!logged_in) {
|
||||||
const tokenElem = document
|
const tokenElem = document
|
||||||
.getElementsByName("cf-turnstile-response")
|
.getElementsByName("cf-turnstile-response")
|
||||||
.item(0) as HTMLInputElement;
|
.item(0) as HTMLInputElement | null;
|
||||||
|
|
||||||
if (!tokenElem.value) {
|
if (!tokenElem?.value) {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
return toast({
|
return toast({
|
||||||
description: "Please complete the captcha and try again",
|
description: "Please complete the captcha and try again",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"build": "remix build --sourcemap",
|
"build": "remix build --sourcemap",
|
||||||
"check-format": "prettier -c .",
|
"check-format": "prettier -c .",
|
||||||
"format": "prettier -wc .",
|
"format": "prettier -wc .",
|
||||||
"publish": "remix build --sourcemap && wrangler pages deploy public"
|
"publish": "remix build --sourcemap && wrangler pages deploy --upload-source-maps public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.10.9",
|
"@chakra-ui/react": "^2.10.9",
|
||||||
|
|||||||
Reference in New Issue
Block a user