lrf 2 years ago
parent
commit
5758037335
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/eliminate.js

+ 2 - 2
app/service/eliminate.js

@@ -68,9 +68,9 @@ class EliminateService extends CrudService {
         lose = player_one_name;
       }
       arr.push({ name: win, num });
-      num++;
+      if (num < 5) num++;
       arr.push({ name: lose, num });
-      num++;
+      if (num < 5) num++;
     }
     return arr;
   }