Add bonfire to challenge types
This commit is contained in:
@ -2,7 +2,7 @@ import { handleActions } from 'redux-actions';
|
|||||||
import { createPoly } from '../../../../utils/polyvinyl';
|
import { createPoly } from '../../../../utils/polyvinyl';
|
||||||
|
|
||||||
import types from './types';
|
import types from './types';
|
||||||
import { HTML, JS } from '../../../utils/challengeTypes';
|
import { BONFIRE, HTML, JS } from '../../../utils/challengeTypes';
|
||||||
import { buildSeed, getPath } from '../utils';
|
import { buildSeed, getPath } from '../utils';
|
||||||
|
|
||||||
const initialState = {
|
const initialState = {
|
||||||
@ -70,7 +70,8 @@ const filesReducer = handleActions(
|
|||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
challenge.challengeType !== HTML &&
|
challenge.challengeType !== HTML &&
|
||||||
challenge.challengeType !== JS
|
challenge.challengeType !== JS &&
|
||||||
|
challenge.challengeType !== BONFIRE
|
||||||
) {
|
) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user