diff --git a/src/app/components/games-bar/games-bar.component.ts b/src/app/components/games-bar/games-bar.component.ts index 8a5c22f..14502de 100644 --- a/src/app/components/games-bar/games-bar.component.ts +++ b/src/app/components/games-bar/games-bar.component.ts @@ -22,7 +22,7 @@ export class GamesBarComponent implements OnInit { console.log(value); this.games = value; if (this.games.length > 0){ - this.activeGame = 0 + this.activeGame = this.games[0].title } }); } diff --git a/src/app/interfaces/game.interface.ts b/src/app/interfaces/game.interface.ts index 37f5170..1156c33 100644 --- a/src/app/interfaces/game.interface.ts +++ b/src/app/interfaces/game.interface.ts @@ -1,5 +1,5 @@ export interface Game { - id: number; + id: string; title: string; image: string; description: string; diff --git a/src/app/services/go.ts b/src/app/services/go.ts index acc0fd5..ece084a 100644 --- a/src/app/services/go.ts +++ b/src/app/services/go.ts @@ -2,7 +2,7 @@ import { Game } from '../interfaces/game.interface'; export interface Go extends Window { GetGames: () => Promise; - GoRunGame: (gameId: number) => void; + GoRunGame: (gameId: string) => void; } export interface GoCallback extends Window {