Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 07dffa0..efc6784 100644
--- a/src/index.js
+++ b/src/index.js
@@ -92,7 +92,7 @@ function clearMoveEndedIndicators(records) {
function distance(count = '-') {
distanceOutput.querySelector('#hex-count').textContent = count;
- distanceOutput.style.visibility = count === '-' ? 'hidden' : 'visible';
+ distanceOutput.style.display = count === '-' ? 'none' : 'inline';
}
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random#getting_a_random_integer_between_two_values_inclusive