mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed setting distance
This commit is contained in:
parent
c166eee586
commit
42dbfb0681
3 changed files with 16 additions and 12 deletions
|
@ -30,7 +30,7 @@ const setDistance = (
|
|||
{ distance }: ReturnType<typeof ACTIONS.editorSetDistance>
|
||||
): IEditorState => ({
|
||||
...state,
|
||||
distance,
|
||||
distance: parseFloat(distance.toFixed(1)),
|
||||
estimated: getEstimated(distance, state.speed),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue