From f9e306b8912679e7fc7fb65bb9b4428ae2ec0cd5 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 1 Oct 2016 18:25:28 -0400 Subject: [PATCH] Yet more misc fixes --- js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 73f7c57..d87ccde 100644 --- a/js/main.js +++ b/js/main.js @@ -223,7 +223,9 @@ function isComplete() { let arr = invalids[i]; if (arr) { for (var j = 0; j < arr.length; j++) { - if (arr[j]) { + // invalid marks are sometimes cleared but not removed + // this can be checked by checking mark.lines.length != 0 + if (arr[j] && arr[j].lines.length != 0) { return false; } }