mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Merge dd193802be into 2fe3235d51
This commit is contained in:
commit
c0687f38e9
1 changed files with 4 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue