Skip to content

Commit 42bdbcc

Browse files
committed
More fixes
1 parent dad2e7e commit 42bdbcc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/lib/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
AccountApi as AccountV2Api,
1818
Configuration as ConfigurationV2,
1919
HubManagementApi as HubManagementV2Api,
20-
ShockerSharesApi as ShockerSharesV2Api,
20+
UserShockerSharesApi as ShockerSharesV2Api,
2121
ShockersApi as ShockersV2Api,
2222
} from './internal/v2';
2323

src/lib/components/Turnstile.svelte

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
let {
1818
action,
1919
cData,
20-
response = $bindable(dev ? PUBLIC_TURNSTILE_DEV_BYPASS_VALUE : null),
20+
response = $bindable(),
2121
}: Props = $props();
2222
2323
let element: HTMLDivElement;
@@ -47,7 +47,10 @@
4747
}
4848
4949
onMount(() => {
50-
if (dev) return;
50+
if (dev) {
51+
response = PUBLIC_TURNSTILE_DEV_BYPASS_VALUE;
52+
return;
53+
}
5154
5255
// Check that Cloudflare Turnstile has been loaded.
5356
// If `window.turnstile` is undefined, it usually means the <script> tag wasn't injected.

0 commit comments

Comments
 (0)