Browse Source

Resetting gameStore to the real defaults

Kirk Trombley 5 years ago
parent
commit
4f4676e6f8
1 changed files with 7 additions and 7 deletions
  1. 7 7
      client/src/domain/gameStore.js

+ 7 - 7
client/src/domain/gameStore.js

@@ -12,19 +12,19 @@ export const [
   },
   dispatch,
 ] = createStore({
-  gameId: "71925bd5-dc01-491a-8d94-9221cd222073",
-  playerName: "asdf",
+  gameId: null,
+  playerName: null,
   lastRound: {
-    roundNum: 1,
+    roundNum: -1,
     targetPoint: {
       lat: 0,
-      lng: -10,
+      lng: 0,
     },
-    score: 5000,
-    totalScore: 25000,
+    score: -1,
+    totalScore: -1,
   },
   gameJoined: false,
-  gameState: POST_ROUND,
+  gameState: PRE_GAME,
 }, {
   setPlayerName: ([set], playerName) => set({ playerName }),
   goToLobby: ([set, get], gameId) => set({