Draft of problems section
[vchess.git] / client / src / views / MyGames.vue
index 1ca9411..c89b2d6 100644 (file)
@@ -16,9 +16,8 @@ import { store } from "@/store";
 import { GameStorage } from "@/utils/gameStorage";
 import { ajax } from "@/utils/ajax";
 import GameList from "@/components/GameList.vue";
-
 export default {
-  name: "my-games",
+  name: "my-my-games",
   components: {
     GameList,
   },
@@ -47,7 +46,7 @@ export default {
   methods: {
     // TODO: classifyObject and filterGames are redundant (see Hall.vue)
     classifyObject: function(o) {
-      return (o.timeControl.indexOf('d') === -1 ? "live" : "corr");
+      return (o.cadence.indexOf('d') === -1 ? "live" : "corr");
     },
     filterGames: function(type) {
       return this.games.filter(g => g.type == type);