worked on video challenge superblock
fixed rebase merge errors Fix videos route Fix hikes broken true/false fixed component name
This commit is contained in:
@@ -15,8 +15,8 @@ const debug = debugFactory('freecc:react-server');
|
||||
const routes = [
|
||||
'/jobs',
|
||||
'/jobs/*',
|
||||
'/hikes',
|
||||
'/hikes/*'
|
||||
'/videos',
|
||||
'/videos/*'
|
||||
];
|
||||
|
||||
const devRoutes = [];
|
||||
|
@@ -223,6 +223,15 @@ function getSuperBlocks$(challenge$, completedChallenges) {
|
||||
const isComingSoon = _.every(blockArray, 'isComingSoon');
|
||||
const isRequired = _.every(blockArray, 'isRequired');
|
||||
|
||||
blockArray = blockArray.map(challenge => {
|
||||
if (challenge.challengeType == 6 && challenge.type === 'hike') {
|
||||
challenge.url = '/videos/' + challenge.dashedName;
|
||||
} else {
|
||||
challenge.url = '/challenges/' + challenge.dashedName;
|
||||
}
|
||||
return challenge;
|
||||
});
|
||||
|
||||
return {
|
||||
isBeta,
|
||||
isComingSoon,
|
||||
|
Reference in New Issue
Block a user