Add bonfire to challenge types

This commit is contained in:
Berkeley Martinez
2016-05-13 14:05:29 -07:00
parent f76eaf829f
commit c0f4fecb6f

View File

@ -2,7 +2,7 @@ import { handleActions } from 'redux-actions';
import { createPoly } from '../../../../utils/polyvinyl';
import types from './types';
import { HTML, JS } from '../../../utils/challengeTypes';
import { BONFIRE, HTML, JS } from '../../../utils/challengeTypes';
import { buildSeed, getPath } from '../utils';
const initialState = {
@ -70,7 +70,8 @@ const filesReducer = handleActions(
}
if (
challenge.challengeType !== HTML &&
challenge.challengeType !== JS
challenge.challengeType !== JS &&
challenge.challengeType !== BONFIRE
) {
return {};
}