lrf %!s(int64=2) %!d(string=hai) anos
pai
achega
5758037335
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
   }