@@ -322,7 +322,7 @@ export default function Home({ }) {
322322
323323 // Fetch fresh data when account modal opens (to get updated elo after games)
324324 if ( accountModalOpen ) {
325- fetch ( clientConfig ( ) . apiUrl + "/api/eloRank?username=" + session . token . username )
325+ fetch ( clientConfig ( ) . apiUrl + "/api/eloRank?username=" + session . token . username + "&secret=" + session . token . secret )
326326 . then ( ( res ) => res . json ( ) )
327327 . then ( ( data ) => {
328328 if ( data && data . elo !== undefined ) {
@@ -1270,15 +1270,15 @@ export default function Home({ }) {
12701270
12711271 // Use the passed options directly to avoid stale state issues
12721272 const options = args [ 0 ] || multiplayerState . createOptions ;
1273- ws . send ( JSON . stringify ( {
1274- type : "setPrivateGameOptions" ,
1275- rounds : options . rounds ,
1276- timePerRound : options . timePerRound ,
1277- nm : options . nm ,
1278- npz : options . npz ,
1279- showRoadName : options . showRoadName ,
1280- location : options . location ,
1281- displayLocation : options . displayLocation
1273+ ws . send ( JSON . stringify ( {
1274+ type : "setPrivateGameOptions" ,
1275+ rounds : options . rounds ,
1276+ timePerRound : options . timePerRound ,
1277+ nm : options . nm ,
1278+ npz : options . npz ,
1279+ showRoadName : options . showRoadName ,
1280+ location : options . location ,
1281+ displayLocation : options . displayLocation
12821282 } ) ) ;
12831283 }
12841284
@@ -1773,7 +1773,7 @@ export default function Home({ }) {
17731773 // Game was cancelled before it started (opponent left during countdown)
17741774 // No ELO was lost - just return to home and optionally re-queue
17751775 toast . info ( text ( "opponentLeftBeforeStart" ) || "Opponent left before the game started. Returning to queue..." ) ;
1776-
1776+
17771777 setScreen ( "home" )
17781778 setMultiplayerChatEnabled ( false )
17791779
0 commit comments