Skip to content

Conversation

@yugarinn
Copy link

@yugarinn yugarinn commented Mar 1, 2025

This PR aims to fix the issue #16948.

The reported bug is caused by the studyPracticeCrtl.onVictory() method calling the goToNextChapter method with a 1 second timeout, allowing a 1 second window for the user to click the "Success" button and manually triggering the goToNextChapter method again. This resulted in two chapters being marked as completed at the same time.

2025-03-01T17:42:08,683355496+01:00

The fix simply replaces the "Success" button with a non-clickable span if the user has the "Load next exercise immediately" option checked to avoid the issue.

@ornicar ornicar merged commit d9ef557 into lichess-org:master Mar 2, 2025
3 checks passed
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