Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console warning about video consent template "consent_005" #325

Open
becky-gilbert opened this issue Feb 9, 2023 · 0 comments
Open

console warning about video consent template "consent_005" #325

becky-gilbert opened this issue Feb 9, 2023 · 0 comments
Assignees

Comments

@becky-gilbert
Copy link
Contributor

Describe the bug

The video consent frame shows a warning when consent template 005 is used.

Which frame or frames does it affect?

exp-lookit-video-consent

To Reproduce

  1. Create a study that uses a video consent frame and consent_005 as the template:
"video-consent": {
  "kind": "exp-lookit-video-consent",
  "template": "consent_005"
},
  1. Click 'preview' from the study edit page.
  2. When the study reaches the consent frame, observe that the following warning is shown in the console:

Invalid consent form specified. 'template' parameter of 'exp-lookit-video-consent' frame should be one of: consent_001 consent_002 consent_003 consent_004

Expected behavior

I don't think this should produce a warning. I assume what happened is that someone just forgot to update this list of valid templates when they added consent template 5:

let validTemplateNames = ['consent_001', 'consent_002', 'consent_003', 'consent_004'];

@becky-gilbert becky-gilbert self-assigned this Feb 9, 2023
@mekline mekline moved this to Researcher QOL in Issue Clusters Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Researcher QOL
Development

No branches or pull requests

1 participant