Merge pull request #1128 from ubavic/fix-network-speed

fix: network speed format
This commit is contained in:
Rafael Taranto 2022-02-24 20:49:04 +00:00 committed by GitHub
commit 46d8dbae66

View file

@ -50,8 +50,9 @@ const Overview = ({ data, onActionSuccess }) => {
<Label1 className={classes.label3}>Network speed</Label1> <Label1 className={classes.label3}>Network speed</Label1>
<P noMargin> <P noMargin>
{data.downloadSpeed {data.downloadSpeed
? new BigNumber(data.downloadSpeed).toFixed(4).toString() + ? new BigNumber(data.downloadSpeed)
' MB/s' .toFixed(data.downloadSpeed < 10 ? 2 : 0)
.toString() + ' MB/s'
: 'unavailable'} : 'unavailable'}
</P> </P>
</div> </div>