Fix speed units on the Points page

This commit is contained in:
Eugene Burmakin 2025-02-11 21:38:41 +01:00
parent 5b2834599e
commit 8997d10658
3 changed files with 12 additions and 2 deletions

View file

@ -1 +1 @@
0.24.0
0.24.1

View file

@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
# 0.24.1 - 2025-02-10
# 0.24.1 - 2025-02-11
## Custom map tiles
@ -24,6 +24,10 @@ To set a custom tile URL, go to the user settings and set the `Maps` section to
ruby_dawarich_map_tiles_usage 99
```
### Fixed
- Speed on the Points page is now being displayed in kilometers per hour.
# 0.24.0 - 2025-02-10
## Points speed units

View file

@ -120,4 +120,10 @@ module ApplicationHelper
'text-red-500'
end
def point_speed(speed)
return speed if speed.to_i <= 0
speed * 3.6
end
end