Mission gem glitch

Hello I recently completed the mission “buddy’s name” and I accidentally clicked the mission I just finished to head to “buddy’s name-A”. So I my code to get it over with and I got about 600 gem’s off of it because I now have “1327” gems.

“I ran my code”, Sorry for the typo.

Oh, right my web browser was google chrome on a chrome book, my language was “javascript”.

I don’t see what is wrong.

I got 600 gems for doing about nothing, All I did was retry the mission I already had passed.