Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(game-detail): slight delay before opening
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Sep 18, 2020
1 parent 4242433 commit eecf041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/game-detail/game-detail.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ export class GameDetailPage implements OnInit {
{ time: '04:14', entry: 'blah blah blah' },
]
*/
setTimeout(() => {
this.init();
}, 200);
}

async init() {
this.subscription = await this.stream.subscribe((streamData: StreamData) => {
this.streamData = streamData;
const game = streamData?.games?.schedule?.find((game: Game) => game.id === this.id);
Expand Down

0 comments on commit eecf041

Please sign in to comment.