diff --git a/src/app/game/game-result/game-result.component.ts b/src/app/game/game-result/game-result.component.ts index 407be41b..bdda1063 100644 --- a/src/app/game/game-result/game-result.component.ts +++ b/src/app/game/game-result/game-result.component.ts @@ -177,12 +177,14 @@ export class GameResultComponent implements OnInit, OnDestroy { } playAgain(): void { + this.gameStateService.restartGame(); + this.drawingService.clearState(); if (this.ismultiplayer) { this.multiplayerService.clearState(); + this.router.navigateByUrl('/welcome').then(() => { + this.router.navigateByUrl('/playgame/multiplayer'); + }); } - - this.drawingService.clearState(); - this.gameStateService.restartGame(); } endGame(): void {