Skip to content

Commit

Permalink
Merge branch 'turnstile' of https://github.com/sussy-code/smov into t…
Browse files Browse the repository at this point in the history
…urnstile
  • Loading branch information
Captain Jack Sparrow committed Jun 9, 2024
2 parents cb8367d + 224fd5b commit acd01a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/turnstile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export async function getTurnstileToken() {
const turnstile = getTurnstile();

Check warning on line 77 in src/stores/turnstile/index.tsx

View workflow job for this annotation

GitHub Actions / Run Linters

'turnstile' is assigned a value but never used. Allowed unused vars must match /^_/u

Check warning on line 77 in src/stores/turnstile/index.tsx

View workflow job for this annotation

GitHub Actions / Build project

'turnstile' is assigned a value but never used. Allowed unused vars must match /^_/u
try {
const token = await useTurnstileStore.getState().getToken();

reportCaptchaSolve(true);
return token;
} catch (err) {
Expand All @@ -103,7 +104,7 @@ export function TurnstileProvider(props: {
<Turnstile
siteKey={siteKey}
options={{
refreshExpired: "auto",
refreshExpired: "never",
theme: "light",
}}
onWidgetLoad={(widgetId) => {
Expand Down

0 comments on commit acd01a0

Please sign in to comment.