From 3c1deccbc2fe140c89fdc3db3f43f211e63bf71c Mon Sep 17 00:00:00 2001 From: Dor Dadush Date: Mon, 25 Dec 2023 12:11:08 +0200 Subject: [PATCH] fix share text not includes all distances we should not rely on the number of greens when deciding to show the distance or not. --- static/semantle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/semantle.js b/static/semantle.js index d76fb77..e24b6c5 100644 --- a/static/semantle.js +++ b/static/semantle.js @@ -81,7 +81,7 @@ function solveStory(guesses, puzzleNumber) { txt += '🟩'.repeat(greens) + '⬜'.repeat(whites) + ' '; } txt += ' ' + guess_number; - if (greens != 0) { + if (distance > 0) { txt += ' (' + distance + '/1000)'; } txt += '\n'