diff --git a/src/components/StartGameButton.tsx b/src/components/StartGameButton.tsx index 520cfb1..a0623d9 100644 --- a/src/components/StartGameButton.tsx +++ b/src/components/StartGameButton.tsx @@ -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"); }} >