From 19686e706795e3856222ae12f39a62cfae6f8bed Mon Sep 17 00:00:00 2001 From: Asger Hautop Drewsen Date: Mon, 20 Dec 2021 17:22:52 +0100 Subject: [PATCH] Allow resuming a game with a chug in progress See #51 --- src/app/services/game.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/game.service.ts b/src/app/services/game.service.ts index e279f75..80e3de1 100644 --- a/src/app/services/game.service.ts +++ b/src/app/services/game.service.ts @@ -337,8 +337,9 @@ export class GameService { if ( this.game.cards.length > 0 && latestCard.value === 14 && - !latestCard.chug_start_start_delta_ms + !latestCard.chug_end_start_delta_ms ) { + // TODO: Proper resume chug dialog when reloading during a started chug this.showChugModal(); return; }