summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-20 13:43:46 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-20 13:43:46 +0530
commit0b97b42d60a662c0d138c44f6dbd05a3048ac349 (patch)
tree4c955c710832828ea5db72bdfa87ee360f99525a
parent4ff8d5d28d402284ad365630d9c85b9ae4479b04 (diff)
downloadgitlab-ce-0b97b42d60a662c0d138c44f6dbd05a3048ac349.tar.gz
Cycle Analytics: A value of 0 is changed to `nil`.
-rw-r--r--app/helpers/cycle_analytics_helper.rb2
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