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

[JN-1020] Fix Enrollee view when Outreach has undefined task/response #916

Merged
merged 2 commits into from
May 31, 2024

Conversation

MatthewBemis
Copy link
Member

@MatthewBemis MatthewBemis commented May 31, 2024

DESCRIPTION (include screenshots, and mobile screenshots for participant UX)

Noticed this while debugging the survey/task completion issue. The enrollee view wouldn't render correctly if the study had an outreach survey and the selected enrollee hadn't recorded a "response" for it yet. Also slightly refactors how the survey/task links are generated to prevent "undefined" from being in the URL if the participant hadn't been assigned that particular task.

TO TEST: (simple manual steps for confirming core behavior -- used for pre-release checks)

@MatthewBemis MatthewBemis marked this pull request as ready for review May 31, 2024 15:58
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@MatthewBemis MatthewBemis changed the title [no ticket yet] Fix Enrollee view when Outreach has undefined task/response [JN-1020] Fix Enrollee view when Outreach has undefined task/response May 31, 2024
</NavLink>
{badgeForResponses(responseMap[stableId].response)}
{createSurveyNavLink(stableId, responseMap, survey)}
{badgeForResponses(responseMap[stableId]?.response)}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line is the crux of the change

@MatthewBemis MatthewBemis added this pull request to the merge queue May 31, 2024
Merged via the queue into development with commit 1f0f760 May 31, 2024
16 of 18 checks passed
@MatthewBemis MatthewBemis deleted the mb-fix-outreach-undefined branch May 31, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants