Skip to content

Commit

Permalink
Make analytics tracking should be optional and do not block starting …
Browse files Browse the repository at this point in the history
…the game if it fails
  • Loading branch information
krasun committed Oct 29, 2024
1 parent d3440c7 commit 31c3c79
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/StartGameButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export function StartGameButton() {
size="lg"
className="text-xl font-bold p-6"
onClick={async () => {
await hit();
try {
await hit();
} catch (error) {
console.error(error);
}

router.push("/game/new");
}}
>
Expand Down

0 comments on commit 31c3c79

Please sign in to comment.