fix: suppress warning for seedless challenges (#41507)

Both challengeType 11 and challengeType 3 have no seeds, so there's no
need to warn about a lack of seed.

The warning has been updated to better reflect the problem (lack of
seed, not lack of comments)
This commit is contained in:
Oliver Eyton-Williams
2021-03-16 16:22:39 +01:00
committed by GitHub
parent 97e040e0a4
commit cbdf317aae
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,7 @@ exports.translateComments = (text, lang, dict, codeLang) => {
exports.translateCommentsInChallenge = (challenge, lang, dict) => {
const challClone = cloneDeep(challenge);
if (!challClone.files) {
console.warn(`Challenge ${challClone.title} has no comments to translate`);
console.warn(`Challenge ${challClone.title} has no seed to translate`);
} else {
Object.keys(challClone.files).forEach(key => {
if (challClone.files[key].contents) {