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:
committed by
GitHub
parent
97e040e0a4
commit
cbdf317aae
@ -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) {
|
||||
|
Reference in New Issue
Block a user