Skip to content

Commit

Permalink
Fix the 'missing locale' error in the consentSurvey plugin (#105)
Browse files Browse the repository at this point in the history
* fix the parameter info on the ConsentSurveyPlugin class
* update package versions
* add changeset
  • Loading branch information
becky-gilbert authored Nov 5, 2024
1 parent 155cb65 commit 683a072
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .changeset/shiny-walls-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lookit/surveys": patch
---

Fix "missing locale" error when the optional locale parameter is not specified
in a consent-survey plugin.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/surveys/src/consentSurvey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type Trial = TrialType<Info>;

/** Consent Survey plugin extends jsPsych's Survey Plugin. */
export class ConsentSurveyPlugin extends SurveyPlugin {
public static readonly info = SurveyPlugin.info;
public static readonly info = info;
/**
* Custom consent survey function adds functionality before creating a survey
* based on the user-defined survey JSON/function.
Expand Down

0 comments on commit 683a072

Please sign in to comment.