]> git.sesse.net Git - remoteglot/blobdiff - www/js/hash-lookup.js
Add a SCORE_NONE, and fix a typo.
[remoteglot] / www / js / hash-lookup.js
index 274490f101327ca75f2fadd491517f6c4a68438d..8fe12970bb0e5ac5f75dc8b730a3a6586fa0d882 100644 (file)
@@ -90,7 +90,7 @@ var translate_line = function(board, fen, line) {
        var score = null;
        if (line['value']['score_type'] === 'SCORE_CP') {
                score = ['cp', line['value']['score_cp']];
-       } else if (line['value']['score_mate'] === 'SCORE_MATE') {
+       } else if (line['value']['score_type'] === 'SCORE_MATE') {
                score = ['m', line['value']['score_mate']];
        }
        if (score) {