From d0313ad119de10d4fdbe90d9b2ccbbde9abcdb3f Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Tue, 18 Oct 2022 18:17:12 +0300 Subject: [PATCH] fix iterating in games bar --- src/app/components/games-bar/games-bar.component.html | 4 ++-- src/app/components/games-bar/games-bar.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/components/games-bar/games-bar.component.html b/src/app/components/games-bar/games-bar.component.html index 8225cc9..71e4e3c 100644 --- a/src/app/components/games-bar/games-bar.component.html +++ b/src/app/components/games-bar/games-bar.component.html @@ -1,4 +1,4 @@
- +
- + diff --git a/src/app/components/games-bar/games-bar.component.ts b/src/app/components/games-bar/games-bar.component.ts index 14502de..6a0e11f 100644 --- a/src/app/components/games-bar/games-bar.component.ts +++ b/src/app/components/games-bar/games-bar.component.ts @@ -9,7 +9,7 @@ import { GetGames } from 'src/app/services/go'; }) export class GamesBarComponent implements OnInit { games: Game[] = []; - activeGame: Game['id'] | null = null; + activeGame: Game | null = null; constructor() {} @@ -22,7 +22,7 @@ export class GamesBarComponent implements OnInit { console.log(value); this.games = value; if (this.games.length > 0){ - this.activeGame = this.games[0].title + this.activeGame = this.games[0] } }); }