diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 11:13:46 +0300 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 11:13:46 +0300 |
commit | 0b97b42d60a662c0d138c44f6dbd05a3048ac349 (patch) | |
tree | 4c955c710832828ea5db72bdfa87ee360f99525a | |
parent | 4ff8d5d28d402284ad365630d9c85b9ae4479b04 (diff) |
Cycle Analytics: A value of 0 is changed to `nil`.
-rw-r--r-- | app/helpers/cycle_analytics_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/cycle_analytics_helper.rb b/app/helpers/cycle_analytics_helper.rb index 5caf7254c5c..f6f654a639e 100644 --- a/app/helpers/cycle_analytics_helper.rb +++ b/app/helpers/cycle_analytics_helper.rb @@ -16,7 +16,7 @@ module CycleAnalyticsHelper stats << { title: stage_text, description: stage_description, - value: value ? distance_of_time_in_words(value) : nil + value: value && !value.zero? ? distance_of_time_in_words(value) : nil } stats end |