fix copy array because .reverse mutates!

This commit is contained in:
Berkeley Martinez
2015-07-18 23:25:19 -07:00
parent cafd18a5ec
commit b0e3cfd028

View File

@ -48,7 +48,7 @@ export default stampit(React, {
// next questions does not exit // next questions does not exit
// find next hike // find next hike
// //
const nextHike = hikes const nextHike = [].slice.call(hikes)
// hikes is in oder of difficulty, lets get reverse order // hikes is in oder of difficulty, lets get reverse order
.reverse() .reverse()
// now lets find the hike with the difficulty right above this one // now lets find the hike with the difficulty right above this one