pcottle / learnGitBranching

An interactive git visualization and tutorial. Aspiring students of git can use this app to educate and challenge themselves towards mastery of git!
https://pcottle.github.io/learnGitBranching/
MIT License
30.34k stars 5.73k forks source link

Issue: Show Solution confirmation should not be asked if a user has already solved the level #1077

Closed SoumyaBhattacharjee closed 1 year ago

SoumyaBhattacharjee commented 1 year ago

Not sure why, but even if I solved the level and want to know the desired solution, the confirmation dialog box opens.
If I have not solved the level it is absolutely fine asking my confirmation, but if I have actually solved the level there is no point in that.
I have gone through the code and figured out how to solve it, will raise a PR. Please mention if this approach is not expected.

SoumyaBhattacharjee commented 1 year ago

PR: https://github.com/pcottle/learnGitBranching/pull/1078