From a853a7b647978a91df3be441987a4bba1a64a618 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 16 Mar 2022 13:47:14 -0700 Subject: [PATCH] Change console output in App.js on global change Signed-off-by: James Ketrenos --- client/src/App.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index cab09b2..fc492dc 100755 --- a/client/src/App.js +++ b/client/src/App.js @@ -156,13 +156,17 @@ const Table = () => { const resetConnection = cbResetConnection(); if (global.ws !== connection - || global.name !== name - || global.gameId !== gameId) { - console.log(`board - (app) - setting global`, global, - {connection, name, gameId}); + || global.name !== name + || global.gameId !== gameId) { + console.log(`board - (app) - setting global`, global, { + ws: connection, + name, + gameId + }); setGlobal({ ws: connection, - name, gameId + name, + gameId }); }