Fix: Lint docker stats throughput PR

This commit is contained in:
shamoon 2023-11-17 00:03:56 -08:00
parent 7f50f6cfaa
commit 6316de6fa6
2 changed files with 10 additions and 10 deletions

View file

@ -41,7 +41,7 @@ export default function Component({ service }) {
);
}
const { rx_bytes, tx_bytes } = calculateThroughput(statsData.stats);
const { rxBytes, txBytes } = calculateThroughput(statsData.stats);
return (
<Container service={service}>
@ -51,8 +51,8 @@ export default function Component({ service }) {
)}
{statsData.stats.networks && (
<>
<Block label="docker.rx" value={t("common.bytes", { value: rx_bytes })} />
<Block label="docker.tx" value={t("common.bytes", { value: tx_bytes })} />
<Block label="docker.rx" value={t("common.bytes", { value: rxBytes })} />
<Block label="docker.tx" value={t("common.bytes", { value: txBytes })} />
</>
)}
</Container>