Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Conversation

@bjones1
Copy link
Contributor

@bjones1 bjones1 commented Dec 10, 2021

If a students clicks "check me" on an mchoice without selecting an answer, the code returns "undefined" instead of an empty string.

If a students clicks "check me" on an mchoice without selecting an answer, the code returns "undefined" instead of an empty string.
}</li>`;
this.feedbackString += `<li value="${i + 1}">${
this.feedbackList[i]
}</li>`;
Copy link
Member

Choose a reason for hiding this comment

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

This block looks like it should be hand formatted. Not sure what formatter thinks it is a good idea to do ${ on one line and } after it makes it really hard to see that it is jQuery.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll revert this. I use Prettier to format JS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But also, this isn't JQuery, it's a template literal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here's the code before Prettier:

                this.feedbackString += `<li value="${i + 1}">${this.feedbackList[i]
                    }</li>`;

This seems worse than what Prettier did to it!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So on second thought, let's leave this change in.

@bjones1 bjones1 marked this pull request as ready for review December 14, 2021 21:47
@bnmnetp bnmnetp merged commit 24e1cb7 into RunestoneInteractive:peer_support Dec 17, 2021
@bjones1 bjones1 deleted the fitb_fix branch December 23, 2021 21:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants