Skip to content

Commit

Permalink
Fixed pre_target_duration parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
jodeleeuw committed May 17, 2023
1 parent 852d574 commit 952cdf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-guests-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jspsych/plugin-serial-reaction-time": patch
---

Fixed issue that caused `pre_target_duration` parameter to not work correctly
2 changes: 1 addition & 1 deletion packages/plugin-serial-reaction-time/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class SerialReactionTimePlugin implements JsPsychPlugin<Info> {
if (trial.pre_target_duration <= 0) {
showTarget();
} else {
this.jsPsych.pluginAPI.setTimeout(showTarget(), trial.pre_target_duration);
this.jsPsych.pluginAPI.setTimeout(showTarget, trial.pre_target_duration);
}

//show prompt if there is one
Expand Down

0 comments on commit 952cdf5

Please sign in to comment.