mirror of
https://github.com/zoriya/flood.git
synced 2026-05-28 09:27:35 +00:00
Allow format data util to conditionally allow padding
This commit is contained in:
@@ -67,7 +67,7 @@ class SpeedLimitDropdown extends React.Component {
|
||||
if (bytes === 0) {
|
||||
return 'Unlimited';
|
||||
} else {
|
||||
let formattedData = format.data(bytes, '/s', 0);
|
||||
let formattedData = format.data(bytes, '/s', 1, {padded: false});
|
||||
return (
|
||||
<span>
|
||||
{formattedData.value}
|
||||
|
||||
Reference in New Issue
Block a user