merge
This commit is contained in:
@ -18,8 +18,6 @@ export default class extends AbstractView {
|
||||
|
||||
const games = await this.profile.getGameHistory();
|
||||
|
||||
console.log(games)
|
||||
|
||||
await this.fillHistory(games);
|
||||
await this.fillStatistics(games);
|
||||
|
||||
@ -80,10 +78,10 @@ export default class extends AbstractView {
|
||||
*/
|
||||
async fillStatistics(games)
|
||||
{
|
||||
const winrateDiv = document.getElementById("winrate");
|
||||
let winrateDiv = document.getElementById("winrate");
|
||||
|
||||
const win = 0;
|
||||
const lose = 0;
|
||||
let win = 0;
|
||||
let lose = 0;
|
||||
|
||||
games.forEach(game => {
|
||||
if (game.finished === false)
|
||||
@ -100,7 +98,7 @@ export default class extends AbstractView {
|
||||
|
||||
async fillHistory(games)
|
||||
{
|
||||
const game_list = document.getElementById("game-list");
|
||||
let game_list = document.getElementById("game-list");
|
||||
|
||||
games.forEach(game => {
|
||||
|
||||
|
Reference in New Issue
Block a user