This commit is contained in:
Andrew 2026-01-21 21:55:46 +00:00 committed by GitHub
commit c0687f38e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,10 @@ import * as Selectors from "../../selectors";
import { useTypedSelector } from "../../hooks";
const Kbps = memo(() => {
const kbps = useTypedSelector(Selectors.getKbps);
let kbps = useTypedSelector(Selectors.getKbps)?.padStart(3);
if (kbps !== undefined && kbps?.length > 3) {
kbps = kbps.substring(0, 2) + "H";
}
return (
<div id="kbps">
<CharacterString>{kbps || ""}</CharacterString>