]> git.codecow.com Git - nano-pow.git/commitdiff
Fix validation tool.
authorChris Duncan <chris@codecow.com>
Sun, 26 Jul 2026 08:34:30 +0000 (01:34 -0700)
committerChris Duncan <chris@codecow.com>
Sun, 26 Jul 2026 08:34:30 +0000 (01:34 -0700)
index.html

index 480116591ca543868f188ee56cd5dcd0ed10afb7..19f5076f828ecb82939649a8ff6db5b0feb7a5c9 100644 (file)
@@ -271,7 +271,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
                        if (work.length === 16 && hash.length === 64) {
                                NanoPow.work_validate(work, hash, { difficulty })
                                        .then(result => {
-                                               validation.innerText = result
+                                               validation.innerText = +result.valid
                                                        ? `\u2713`
                                                        : `\u274c`
                                        })