From 3e75333b6ad63a9664524b04c3c448bf67d8b2bb Mon Sep 17 00:00:00 2001 From: Dicken Date: Sun, 5 Jul 2026 00:24:20 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Schocken=20-=20Testmodus=20nutzt=20apiAs?= =?UTF-8?q?=20f=C3=BCr=20alle=20Aktionen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/tools/schocken.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/tools/schocken.jsx b/frontend/src/tools/schocken.jsx index 78e4275..21000e4 100644 --- a/frontend/src/tools/schocken.jsx +++ b/frontend/src/tools/schocken.jsx @@ -464,25 +464,25 @@ function GameView({ game, myId, onRefresh, toast, isAdmin=false, onSeatChange }) const currentPlayer = activePlayers[game.current_player_idx % activePlayers.length]; const handleRoll = async (keepDice, flipSixes, goDark) => { - await api(`/tools/schocken/${game.id}/roll`, { + await apiAs(myId, `/tools/schocken/${game.id}/roll`, { body: { keep_dice: keepDice, flip_sixes: flipSixes, go_dark: goDark } }); onRefresh(); }; const handleReady = async () => { - await api(`/tools/schocken/${game.id}/ready`, { body: {} }); + await apiAs(myId, `/tools/schocken/${game.id}/ready`, { body: {} }); onRefresh(); }; const handleEvaluate = async () => { - const result = await api(`/tools/schocken/${game.id}/evaluate`, { body: {} }); + const result = await apiAs(myId, `/tools/schocken/${game.id}/evaluate`, { body: {} }); if (result.round_result?.eventMsg) toast(result.round_result.eventMsg); onRefresh(); }; const handleStart = async () => { - await api(`/tools/schocken/${game.id}/start`, { body: {} }); + await apiAs(myId, `/tools/schocken/${game.id}/start`, { body: {} }); onRefresh(); };