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

Not jumping to score page automatically when answering correct #429

Merged
merged 5 commits into from
Feb 28, 2024

Conversation

janlindso
Copy link
Contributor

Not jumping to score page automatically when answering correct and there is only one page of tasks.

Not jumping to score page automatically when answering correct and there is only one page of tasks.
@janlindso janlindso requested a review from otacke February 20, 2024 12:50
Copy link
Contributor

@otacke otacke left a comment

Choose a reason for hiding this comment

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

The computation of multiplePages feels correct to me as is. It should only be true if there's more than 1 page with words.

I think I know what you want to change (https://github.com/NDLANO/h5p-vocabulary-drill/blob/master/src/components/VocabularyDrill/VocabularyDrill.tsx#L267-L270), but

@janlindso
Copy link
Contributor Author

janlindso commented Feb 27, 2024

You are of course right with the condition always returning true. The reason I didn't remove this block was to keep the navigation bar in the bottom to be able to go to result page (yes, the condition would still not make sense). And it does make sense to not have the result page when there is only one page anyway. So I will remove it to get the intended solution.
https://github.com/NDLANO/h5p-vocabulary-drill/blob/master/src/components/VocabularyDrill/VocabularyDrill.tsx#L267-L270

Seems like the score part is needed for the final score on the last page. If we are talking about the same score thing.

@janlindso janlindso requested a review from otacke February 28, 2024 14:12
Copy link

🎉 H5P.VocabularyDrill's library version was updated from v1.0.29 to v1.0.30.

Copy link
Contributor

@otacke otacke left a comment

Choose a reason for hiding this comment

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

Did some maintenance as well.

@otacke otacke merged commit f0e6adc into master Feb 28, 2024
5 checks passed
@otacke otacke deleted the janlindso-patch-6 branch February 28, 2024 14:23
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.

2 participants