codewars / codewars.com

Issue tracker for Codewars
https://www.codewars.com
BSD 2-Clause "Simplified" License
2.1k stars 220 forks source link

View/Unlock Solutions button in trainer page is not updated when switching languages #3055

Open Voileexperiments opened 1 year ago

Voileexperiments commented 1 year ago

When user enters kata trainer with a language that they have solved the kata in, the button to the solution page at the bottom says "View Solutions":

image

Otherwise it says "Unlock Solutions":

image

However, this button text isn't updated when user switches language from one language which they've solved the kata with to one that they haven't, and vice versa, unless the page is refreshed. This includes their special handling (e.g clicking "Unlock Solutions" will cause a prompt about forfeiting the kata to appear)

Madjosz commented 1 year ago

Duplicate of #2260.