Fix code that skips filling in onTarget area.
[mkws-moved-to-github.git] / tools / htdocs / mkws.js
index a15bfcd..d53e2b3 100644 (file)
@@ -259,7 +259,7 @@ function team($, teamName) {
     function onBytarget(data, teamName) {
        debug("target");
        var targetDiv = findnode('.mkwsBytarget');
-       if (!targetDiv) {
+       if (targetDiv.length === 0) {
            return;
        }