diff --git a/public/saveGameAI.js b/public/saveGameAI.js index 00cf40e..e615662 100644 --- a/public/saveGameAI.js +++ b/public/saveGameAI.js @@ -11,7 +11,7 @@ const worksheetId = urlParams.get('worksheetId'); let submitNotic; let startTime = Date.now(); - + // console.log('gameVersion', gameVersion) const url = window.location.href; const gameName = url.split('/'); @@ -267,7 +267,7 @@ function submitUserData(drawingZone) { // ✅ Now create `userData` inside the correct scope where starValue exists let userData = { - gameName: gameVersion, + gameName: gameVersion.trim(), gameID: gameId, screenShot: imageCode, childId: childId,