-
Notifications
You must be signed in to change notification settings - Fork 215
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
fix: do not display multiple of the same option in options challenges #1482
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/kantord/libre-lingo/AeWRN7TWp1kxuQthGXs5p3aLqJwh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @zmbc, thanks for the contribution.
Looks like the eslint is failing: https://kantord.semaphoreci.com/jobs/586e351b-ca09-4c64-b629-40aaaf7b4b4d
Also, it looks like the Cypress tests might need some updating: https://kantord.semaphoreci.com/jobs/48cf3499-c5b0-419b-ac0d-3e0420668743
(Or maybe your change introduces some unintended side-effect?)
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@kantord Both issues should be resolved now. By the way, this PR doesn't totally fix the problem, because it could still happen that an option is given that matches an alternative translation of the phrase/word. However, this info isn't even exported in the JSON yet so I have chosen not to tackle that here. Perhaps it makes sense to create an open issue to track this? |
Thank you @zmbc ! 🏅 |
🎉 This PR is included in version @librelingo/web-v1.19.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Prevents the user from seeing multiple copies of the same option in an options challenge.