Skip to content

Commit 9c7bf3d

Browse files
committed
Debugging4
1 parent e34ac30 commit 9c7bf3d

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/source/library/game/GamePage.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,15 @@
191191
// To be safe, complete the round when the final question is complete
192192
unsubscribers.push(
193193
currentQuestion.subscribe((value) => {
194+
console.debug("currentQuestion subscribe", value);
194195
if (
195196
value &&
196197
value.status === "complete" &&
197198
!$nextQuestion &&
198199
$gameRoundStatus &&
199200
$gameRoundStatus !== "completed"
200201
) {
202+
console.debug("currentQuestion subscribe updating gameRound", value);
201203
gameRound.update((value) => {
202204
if (!value) {
203205
throw new Error("round is falsy");
@@ -213,6 +215,7 @@
213215
214216
unsubscribers.push(
215217
gameRound.subscribe((value) => {
218+
console.debug("gameRound subscribe", value);
216219
if (!value) {
217220
return;
218221
}
@@ -230,6 +233,7 @@
230233
let lastSeenRoundStatus: GameRound["status"] | null = null;
231234
unsubscribers.push(
232235
gameRoundStatus.subscribe((value) => {
236+
console.debug("gameRoundStatus subscribe", value);
233237
const previousValue = lastSeenRoundStatus;
234238
lastSeenRoundStatus = value;
235239
const gameRoundValue = svelteStore.get(gameRound);

app/source/library/game/Map.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@
292292
score,
293293
status: "complete",
294294
};
295+
console.debug("onChosenPointConfirmed: updating gameRound")
295296
gameRound.update((value) => {
296297
if (!value) {
297298
throw new Error("round is falsy");

0 commit comments

Comments
 (0)