From dffcfb837c82e74a733e4017183ee103cbf08f83 Mon Sep 17 00:00:00 2001 From: Oskar Klintrot Date: Wed, 24 Jul 2024 19:02:05 +0200 Subject: [PATCH] refactor: Rename variable --- src/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index 812261b..acc818e 100644 --- a/src/index.html +++ b/src/index.html @@ -313,7 +313,7 @@

MyThrow.xyz

return; } - const description = (() => { + const plaintext = (() => { switch (true) { case state.current.accuracy < 500: return "good"; @@ -324,7 +324,7 @@

MyThrow.xyz

} })(); - status.textContent = `Accuracy is ${description}: ±${getDistanceWithPreferredUnit( + status.textContent = `Accuracy is ${plaintext}: ±${getDistanceWithPreferredUnit( state.current.accuracy )}`; }