duration
parent
523d2ed28c
commit
8ee168f105
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue