diff --git a/src/App.js b/src/App.js index e211fa2..109212f 100644 --- a/src/App.js +++ b/src/App.js @@ -92,7 +92,8 @@ function App() { if (response.acceleration !== undefined) setAcceleration(response.acceleration); if (response.duration !== undefined) - form.setFieldValue("duration", response.duration === true ? 1 : 0); + form.setFieldValue("duration", response.duration); + if (response.distance !== undefined) setDistance(response.distance); if (response.direction !== undefined) setDirection(response.direction); if (response.runningUntil !== undefined)