Skip to content

Commit

Permalink
tokenを取得し直すように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nose221834 committed Apr 6, 2024
1 parent d0bebf2 commit a5def4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion view/src/app/race/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ export default function Home() {
setScene(scene + 1);
setResponse(false);
setSubmit(false);
setToken(null);
}

return (
<main>
<Turnstile className="hidden" siteKey={env.siteKey} onSuccess={setToken} />
{!response ? (
<>
<Interactive
Expand All @@ -99,6 +99,7 @@ export default function Home() {
submit={onSubmit}
token={token}
/>
<Turnstile className="hidden" siteKey={env.siteKey} onSuccess={setToken} />
{submit && <Loading />}
</>
) : (
Expand Down

0 comments on commit a5def4b

Please sign in to comment.