fix(challenges): Call resetQuiz() when dashedName of the quiz chang (#16828)
fix(challenges): Call resetQuiz() when dashedName of the quiz chang (#16828)

currentIndex, selectedChoice and correct state variables of the Quiz
component were not changing when navigating to other quiz challenges
through map. I fixed it by calling resetQuiz() whenever dashedName of
the quiz changes.
MiloATH/FreeCodeCamp,pahosler/freecodecamp,jonathanihm/freeCodeCamp,matthew-t-smith/freeCodeCamp,raisedadead/FreeCodeCamp,raisedadead/FreeCodeCamp,otavioarc/freeCodeCamp,BerkeleyTrue/FreeCodeCamp,jonathanihm/freeCodeCamp,matthew-t-smith/freeCodeCamp,FreeCodeCampQuito/FreeCodeCamp,pahosler/freecodecamp,FreeCodeCamp/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,HKuz/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp,Munsterberg/freecodecamp,otavioarc/freeCodeCamp,Munsterberg/freecodecamp,FreeCodeCamp/FreeCodeCamp,MiloATH/FreeCodeCamp,HKuz/FreeCodeCamp,BerkeleyTrue/FreeCodeCamp,FreeCodeCampQuito/FreeCodeCamp,BhaveshSGupta/FreeCodeCamp