Skip to content

Commit 892e9d1

Browse files
committed
Debugging
1 parent 49b5095 commit 892e9d1

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

app/source/library/game/GamePage.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
}
101101
102102
onMount(() => {
103+
console.debug("GamePage: onMount");
104+
debugger;
103105
const unsubscribers: svelteStore.Unsubscriber[] = [];
104106
105107
// Update the URL path when the area center changes
@@ -193,16 +195,16 @@
193195
value &&
194196
value.status === "complete" &&
195197
!$nextQuestion &&
196-
$gameRound &&
197-
$gameRound.status !== "completed"
198+
$gameRoundStatus &&
199+
$gameRoundStatus !== "completed"
198200
) {
199201
gameRound.update((value) => {
200202
if (!value) {
201203
throw new Error("round is falsy");
202204
}
203205
return {
204206
...value,
205-
status: $gameRound.status,
207+
status: $gameRoundStatus,
206208
};
207209
});
208210
}

app/source/utilities/loadRound.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ export default async ({
3838
radius: number;
3939
userOrganization: UserOrganization | null;
4040
}) => {
41+
console.debug("loadRound", {
42+
areaSelection,
43+
difficulty,
44+
isOrganizationUrl,
45+
numberOfQuestions,
46+
userOrganization,
47+
});
4148
isLoading.set(true);
4249

4350
if (!getRandomNumber) {

0 commit comments

Comments
 (0)