Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-20 11:13:46 +0300
committerTimothy Andrew <mail@timothyandrew.net>2016-09-20 11:13:46 +0300
commit0b97b42d60a662c0d138c44f6dbd05a3048ac349 (patch)
tree4c955c710832828ea5db72bdfa87ee360f99525a
parent4ff8d5d28d402284ad365630d9c85b9ae4479b04 (diff)
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