Skip to content

Commit

Permalink
refactor: Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarKlintrot committed Jul 24, 2024
1 parent 69c9544 commit dffcfb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ <h1>MyThrow.xyz</h1>
return;
}

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

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

0 comments on commit dffcfb8

Please sign in to comment.