fix copy array because .reverse mutates!

pull/1319/head^2
Berkeley Martinez 2015-07-18 23:25:19 -07:00
parent cafd18a5ec
commit b0e3cfd028
1 changed files with 1 additions and 1 deletions

View File

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