fix: add dynamic output for legacy challenges

Co-Authored-By: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
Oliver Eyton-Williams
2019-11-04 10:43:32 +01:00
committed by mrugesh
parent 64fcbbb491
commit 9a97d639f5

View File

@@ -179,5 +179,8 @@ export function challengeHasPreview({ challengeType }) {
}
export function isJavaScriptChallenge({ challengeType }) {
return challengeType === challengeTypes.js;
return (
challengeType === challengeTypes.js ||
challengeType === challengeTypes.bonfire
);
}