Fix torrent speeds unit

This commit is contained in:
Someone
2023-11-02 10:41:42 +01:00
committed by GitHub
parent 982bb557a3
commit b60be13ab9

View File

@@ -83,14 +83,14 @@ export const BitTorrentQueueItem = ({ torrent, width, app }: TorrentQueueItemPro
{width > MIN_WIDTH_MOBILE && (
<td>
<Text className={classes.noTextBreak} size="xs">
{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} Mb/s` : '-'}
{downloadSpeed > 0 ? `${downloadSpeed.toFixed(1)} MB/s` : '-'}
</Text>
</td>
)}
{width > MIN_WIDTH_MOBILE && (
<td>
<Text className={classes.noTextBreak} size="xs">
{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} Mb/s` : '-'}
{uploadSpeed > 0 ? `${uploadSpeed.toFixed(1)} MB/s` : '-'}
</Text>
</td>
)}