fix(radio): floor unlock-progress readout so it never overstates the threshold
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
911fc31354
commit
167ac22990
1 changed files with 3 additions and 2 deletions
|
|
@ -33,8 +33,9 @@ export function RadioArena({
|
|||
sprintBestAccuracy: initialStats.sprintBestAccuracy,
|
||||
watchBestAccuracy: initialStats.watchBestAccuracy,
|
||||
});
|
||||
const sprintPercent = Math.round(initialStats.sprintBestAccuracy * 100);
|
||||
const watchPercent = Math.round(initialStats.watchBestAccuracy * 100);
|
||||
// Floor, never round: rounding showed "90%" while locked at 89.75%.
|
||||
const sprintPercent = Math.floor(initialStats.sprintBestAccuracy * 100);
|
||||
const watchPercent = Math.floor(initialStats.watchBestAccuracy * 100);
|
||||
|
||||
useEffect(() => {
|
||||
const savedMode = window.localStorage.getItem("radio-traffic-mode");
|
||||
|
|
|
|||
Loading…
Reference in a new issue