Fix moves sending. TODO: fix double opp move + clocks update
[vchess.git] / client / src / utils / storage.js
index ecafe20..a30bb82 100644 (file)
@@ -99,7 +99,7 @@ export const GameStorage =
       fen: o.fenStart,
       moves: [],
       clocks: [...Array(o.players.length)].fill(tc.mainTime),
-      initime: undefined,
+      initime: (o.initime ? Date.now() : undefined),
       score: "*",
     };