Some (experimental) fixes
[vchess.git] / client / src / components / GameList.vue
index 0d488e5..a8c0dab 100644 (file)
@@ -115,6 +115,8 @@ export default {
     },
     deleteGame: function(game, e) {
       if (
+        // Import ?
+        (typeof game.id == "string" && game.id.charAt(0) == 'i') ||
         // My game ?
         game.players.some(p =>
           p.sid == this.st.user.sid || p.id == this.st.user.id