Skip to content

Commit

Permalink
Update plugin with new survey function
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Oct 31, 2024
1 parent 5a6b8cf commit 81e0629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/surveys/src/exitSurvey.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import SurveyPlugin from "@jspsych/plugin-survey";
import chsTemplates from "@lookit/templates";
import { ParameterType, TrialType } from "jspsych";
import { exitSurveyFunction as survey_function } from "./utils";
import { exitSurveyFunction } from "./utils";

const info = <const>{
...SurveyPlugin.info,
Expand Down Expand Up @@ -48,11 +48,11 @@ export class ExitSurveyPlugin extends SurveyPlugin {
* @param display_element - Display element.
* @param trial - Info parameters.
*/
public trial(display_element: HTMLElement, trial: TrialType<Info>) {
public trial(display_element: HTMLElement, trial: Trial) {
super.trial(display_element, {
...trial,
survey_json: chsTemplates.exitSurvey(trial),
survey_function,
survey_function: exitSurveyFunction(trial),
});
}

Expand Down

0 comments on commit 81e0629

Please sign in to comment.