Skip to content

Commit 1c37f56

Browse files
committed
Fixed turn timer not clearing bug
1 parent fb3c8e9 commit 1c37f56

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

client/src/pages/tabletop-page/tabletop-component/turn-timer/turn-timer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default class TurnTimerComponent extends SuperComponent<ITurnTimerCompone
4343
});
4444
}
4545
break;
46+
case "room:initiative:clear":
47+
this.set({ hidden: true, running: false });
4648
default:
4749
break;
4850
}

wss/src/room.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ class Room {
165165
this.broadcast("room:initiative:sync", []);
166166
this.activeInitiative = null;
167167
this.broadcast("room:initiative:active", null);
168+
this.broadcast("room:initiative:clear");
168169
this.turnCounter = 0;
169170
}
170171

0 commit comments

Comments
 (0)