1
0
Fork 0

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:
Jason Fraley 2026-09-09 00:03:36 -04:00
parent 911fc31354
commit 167ac22990

View file

@ -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");