diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 47d40698..329b731d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -169,9 +169,9 @@ module ApplicationHelper end def point_speed(speed) - return speed if speed.to_i <= 0 - - speed * 3.6 + return "–" if speed.nil? || speed.to_f <= 0 + speed = speed.to_f + "#{(speed * 3.6).round(1)}" end def days_left(active_until)