View solution section automatically edits my answer

I’ll occasionally use the View Solution button when I can’t figure out a question, but when I use it, it automatically changes my code to the answer, both in the View Solution page and the lesson page, so I can’t see what I’ve done wrong. The “Keep My Code” button, and the “Replace With Solution” button, both do the same thing, because if I click on View Solution at all, it edits everything to be correct. It’s quite annoying, and while it lets you progress, it actively hinders your learning because you can’t see what is different from your original code and the correct code.