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.
@@ -187,7 +187,6 @@ class BaseGameController {
187
187
  const allDone = Object.values(this.state.sectors).every((s) => !!s.completedAt);
188
188
  if (allDone && !this.state.endedAt) {
189
189
  this.state.endedAt = NOW();
190
- console.log("[BaseGameController] all sectors complete");
191
190
  }
192
191
  }
193
192
  // ===== Piece Operations =====
@@ -3155,7 +3154,9 @@ function GameBoard(props) {
3155
3154
  if (allSectorsComplete && !gameCompleted) {
3156
3155
  setGameCompleted(true);
3157
3156
  if (tracker) {
3158
- tracker.finalizeTrial("auto_complete");
3157
+ setTimeout(() => {
3158
+ tracker.finalizeTrial("auto_complete");
3159
+ }, 0);
3159
3160
  }
3160
3161
  }
3161
3162
  };
@@ -3726,7 +3727,7 @@ class TangramPrepPlugin {
3726
3727
  this.jsPsych.finishTrial(data);
3727
3728
  };
3728
3729
  const params = {
3729
- numQuickstashSlots: trial.num_quickstash_slots || 4,
3730
+ numQuickstashSlots: trial.num_quickstash_slots,
3730
3731
  maxPiecesPerMacro: trial.max_pieces_per_macro,
3731
3732
  minPiecesPerMacro: trial.min_pieces_per_macro,
3732
3733
  inputMode: trial.input,