mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
Round the value of the slider
This prevents float values from being sent to the server
This commit is contained in:
@@ -331,7 +331,7 @@ class _SlotEntryFormState extends State<SlotEntryForm> {
|
||||
// Process new, edited or entries to be deleted
|
||||
provider.handleConfig(
|
||||
widget.entry,
|
||||
setsSliderValue == 0 ? '' : setsSliderValue.toString(),
|
||||
setsSliderValue == 0 ? '' : setsSliderValue.round().toString(),
|
||||
ConfigType.sets,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user