Fix Swap variant
[vchess.git] / client / src / data / problemCheck.js
index d0978cb..d6b916c 100644 (file)
@@ -4,5 +4,9 @@ export function checkProblem(p) {
 
   if (!V.IsGoodFen(p.fen)) return "Errors in FEN";
 
+  if (p.instruction.trim().length == 0) return "Missing instructions";
+
+  if (p.solution.trim().length == 0) return "Missing solution";
+
   return "";
 }