X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fdata%2FproblemCheck.js;h=d6b916cf14016cfa0750fabd7055acb0dc8536b7;hb=f593e88f9ae8bd76d0d8b31108dfe9f079d9777d;hp=b9fe04dfc094e1c1a7eeea0f3e4792c3895b9e38;hpb=032312bfa24f306e84645645f76d40773149ac49;p=vchess.git diff --git a/client/src/data/problemCheck.js b/client/src/data/problemCheck.js index b9fe04df..d6b916cf 100644 --- a/client/src/data/problemCheck.js +++ b/client/src/data/problemCheck.js @@ -4,9 +4,9 @@ export function checkProblem(p) { if (!V.IsGoodFen(p.fen)) return "Errors in FEN"; - if (p.instruction.trim().length == 0) return "Empty instructions"; + if (p.instruction.trim().length == 0) return "Missing instructions"; - if (p.solution.trim().length == 0) return "Empty solution"; + if (p.solution.trim().length == 0) return "Missing solution"; return ""; }