Closed rakeshhotker closed 1 year ago
Good one, But I would suggest some changes:
For 20 km distance and cycling speed of 10 kph, The time taken should be approx. 2 hour (simple math, summary.jsx is accurate than 7h 38m of map.jsx logic).
These are my suggestions only :)
Sure, I'll do the necessary changes, thanks for your inputs.
Jep ok thanks
🛠️ Fixes Issue
"Route summary reporting error"
Closes #61
👨💻 Changes proposed
1) Created a durationFormatter.js file in utils folder 2) In the durationFormatter.js file created the formatDuration function which can be imported for use anywhere required 3) Importing the formatDuration function in Summary.jsx and Map.jsx to make sure the time displayed is same. Hence fixing the issue
📄 Note to reviewers
Please let me know of any modifications required.
📷 Screenshots