From ab09968afbcef2998c499de8aca03b1d56f430bb Mon Sep 17 00:00:00 2001 From: Captain Jack Sparrow <163903675+sussy-code@users.noreply.github.com> Date: Sun, 2 Jun 2024 22:44:08 +0000 Subject: [PATCH] Eslint got hands --- src/pages/parts/admin/WorkerTestPart.tsx | 3 ++- src/stores/turnstile/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/parts/admin/WorkerTestPart.tsx b/src/pages/parts/admin/WorkerTestPart.tsx index 0ac16605..9fd01004 100644 --- a/src/pages/parts/admin/WorkerTestPart.tsx +++ b/src/pages/parts/admin/WorkerTestPart.tsx @@ -91,7 +91,8 @@ export function WorkerTestPart() { const error = err as Error; error.message = error.message.replace(worker.url, "WORKER_URL"); if ( - error.message === '[Cloudflare Turnstile] Invalid or missing type for parameter "sitekey", expected "string", got "object".' + error.message === + '[Cloudflare Turnstile] Invalid or missing type for parameter "sitekey", expected "string", got "object".' ) { updateWorker(worker.id, { id: worker.id, diff --git a/src/stores/turnstile/index.tsx b/src/stores/turnstile/index.tsx index b1afce72..7a52c26b 100644 --- a/src/stores/turnstile/index.tsx +++ b/src/stores/turnstile/index.tsx @@ -111,7 +111,7 @@ export function TurnstileProvider(props: { > { idRef.current = widgetId; setTurnstile(widgetId, bound, !!props.isInPopout);