jspsych-tangram 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -185,7 +185,6 @@ class BaseGameController {
185
185
  const allDone = Object.values(this.state.sectors).every((s) => !!s.completedAt);
186
186
  if (allDone && !this.state.endedAt) {
187
187
  this.state.endedAt = NOW();
188
- console.log("[BaseGameController] all sectors complete");
189
188
  }
190
189
  }
191
190
  // ===== Piece Operations =====
@@ -3153,7 +3152,9 @@ function GameBoard(props) {
3153
3152
  if (allSectorsComplete && !gameCompleted) {
3154
3153
  setGameCompleted(true);
3155
3154
  if (tracker) {
3156
- tracker.finalizeTrial("auto_complete");
3155
+ setTimeout(() => {
3156
+ tracker.finalizeTrial("auto_complete");
3157
+ }, 0);
3157
3158
  }
3158
3159
  }
3159
3160
  };
@@ -3724,7 +3725,7 @@ class TangramPrepPlugin {
3724
3725
  this.jsPsych.finishTrial(data);
3725
3726
  };
3726
3727
  const params = {
3727
- numQuickstashSlots: trial.num_quickstash_slots || 4,
3728
+ numQuickstashSlots: trial.num_quickstash_slots,
3728
3729
  maxPiecesPerMacro: trial.max_pieces_per_macro,
3729
3730
  minPiecesPerMacro: trial.min_pieces_per_macro,
3730
3731
  inputMode: trial.input,