From a8ed318282e8e8c93202380254debc647fb1c50c Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 30 Mar 2020 21:19:11 +0200
Subject: [PATCH] Smallfix + remove traces

---
 client/src/views/Game.vue | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 5145e588..8b5ca8b6 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -490,7 +490,7 @@ export default {
       }
     },
     getGameType: function(game) {
-      if (!!game.id.match(/^i/)) return "import";
+      if (!!game.id.toString().match(/^i/)) return "import";
       return game.cadence.indexOf("d") >= 0 ? "corr" : "live";
     },
     // Notify something after a new move (to opponent and me on MyGames page)
@@ -1189,11 +1189,6 @@ export default {
     //  - from server (one correspondance game I play[ed] or not)
     //  - from remote peer (one live game I don't play, finished or not)
     fetchGame: function(callback) {
-      
-console.log("fecth");
-      console.log(this.gameRef);
-      console.log(this.gameRef.match(/^i/));
-
       if (Number.isInteger(this.gameRef) || !isNaN(parseInt(this.gameRef))) {
         // corr games identifiers are integers
         ajax(
-- 
2.44.0