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

added question number at the begining of each question #664

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

mcarre20
Copy link
Contributor

No description provided.

@mcarre20 mcarre20 self-assigned this Feb 17, 2025
@mcarre20 mcarre20 linked an issue Feb 17, 2025 that may be closed by this pull request
@@ -203,6 +203,7 @@ const SurveyComponent = ({
<form onSubmit={handleSubmit(surveySubmit)}>
<Stack spacing={formSpacing} mb={formSpacing} mt={formSpacing}>
{surveyStructure?.survey_questions.map((q) => {
const formatedQestion = `${q.display_order}) ${q.question}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

want to change to formattedQuestion?

formatedQuestion -> formattedQuestion
-Updated JSON server survey_index to remove undefined values from suveyComponent test
-JSON server Survey_index file: changed "text" key to "question" to match database structure
-Use Yarn test to update SurveyComponent.Test snapshott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add display numbers to survey questions
2 participants