diff --git a/pkg/storaged/dialog.jsx b/pkg/storaged/dialog.jsx index 927a5db28151..5be2ad6c9596 100644 --- a/pkg/storaged/dialog.jsx +++ b/pkg/storaged/dialog.jsx @@ -943,7 +943,7 @@ class SizeSliderElement extends React.Component { const { unit } = this.state; const change_slider = (_event, f) => { - onChange(Math.max(min, size_slider_round(f * max / 100, round))); + onChange(Math.max(min, size_slider_round(f, round))); }; const change_text = (value) => { @@ -972,7 +972,7 @@ class SizeSliderElement extends React.Component { return ( - + change_text(value)} />