refresh correctly ai reason and user decision

This commit is contained in:
NoeBerdoz
2025-04-12 23:23:11 +02:00
parent b8c556bd88
commit fbf5899262

View File

@ -167,6 +167,8 @@ Alpine.data('gameManager', () => ({
// Update core game data // Update core game data
this.gameData.score = data.score; this.gameData.score = data.score;
this.gameData.status = data.status; this.gameData.status = data.status;
this.gameData.decision = data.decision;
this.gameData.bot_reason = data.bot_reason;
// Update client_id and client_data only if present and game not over // Update client_id and client_data only if present and game not over
if (data.status !== 'gameover') { if (data.status !== 'gameover') {