Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions frontend/src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ const studyPageNames = [
const SURVEY_URLS = {
consentForm: 'https://calvin.co1.qualtrics.com/jfe/form/SV_3adI70Zxk7e2ueW',
preStudy: 'https://calvin.co1.qualtrics.com/jfe/form/SV_eM6R5Yw7nnJ3jh4',
postTask1: 'https://calvin.co1.qualtrics.com/jfe/form/SV_6Vuc9vgqMuEqzVY',
postTask2: 'https://calvin.co1.qualtrics.com/jfe/form/SV_7X8tAiech6zP79A',
postTask3: 'https://calvin.co1.qualtrics.com/jfe/form/SV_1M8MN5b0H9pfYsm',
Completion: 'https://calvin.co1.qualtrics.com/jfe/form/SV_6Vuc9vgqMuEqzVY',
Question: 'https://calvin.co1.qualtrics.com/jfe/form/SV_7X8tAiech6zP79A',
RMove: 'https://calvin.co1.qualtrics.com/jfe/form/SV_1M8MN5b0H9pfYsm',
postStudy: 'https://calvin.co1.qualtrics.com/jfe/form/SV_79DIQlYz4SJCwnk'
};

Expand Down Expand Up @@ -364,7 +364,9 @@ function Router({
nextUrlParams.set('page', nextPage);
const redirectURL = encodeURIComponent(window.location.origin + `/editor.html?${nextUrlParams.toString()}`);
const postTaskNumber = page.replace('study-postTask', '');
const postTaskSurveyURL = SURVEY_URLS[`postTask${postTaskNumber}` as keyof typeof SURVEY_URLS];
const conditionConfig = conditionConfigs[postTaskNumber as keyof typeof conditionConfigs];
const condition = conditionConfig.condition;
const postTaskSurveyURL = SURVEY_URLS[condition as keyof typeof SURVEY_URLS];

return <div className={classes.studyIntroContainer}>
<p> Thank you for completing Task {postTaskNumber}. Please take a moment to complete a brief survey.</p>
Expand Down
Loading