diff --git a/src/App.js b/src/App.js index 6bcdac8..f080165 100644 --- a/src/App.js +++ b/src/App.js @@ -91,8 +91,13 @@ function App() { if (response.acceleration !== undefined) setAcceleration(response.acceleration); + /* if (response.duration !== undefined) - form.setFieldValue("duration", response.duration); + form.setFieldValue("duration", { + $s: response.duration % 60, + $m: Math.floor(response.duration / 60) % 60, + $H: Math.floor(response.duration / 3600), + }); */ if (response.distance !== undefined) setDistance(response.distance); if (response.direction !== undefined) setDirection(response.direction);