File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 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" );
213215
214216 unsubscribers .push (
215217 gameRound .subscribe ((value ) => {
218+ console .debug (" gameRound subscribe" , value );
216219 if (! value ) {
217220 return ;
218221 }
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 );
Original file line number Diff line number Diff line change 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" );
You can’t perform that action at this time.
0 commit comments