summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/analytics_stage_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/analytics_stage_entity.rb b/app/serializers/analytics_stage_entity.rb
index 08fa8b83c24..f87eb78e0e8 100644
--- a/app/serializers/analytics_stage_entity.rb
+++ b/app/serializers/analytics_stage_entity.rb
@@ -7,6 +7,6 @@ class AnalyticsStageEntity < Grape::Entity
expose :description
expose :median, as: :value do |stage|
- stage.median && !stage.median.blank? ? distance_of_time_in_words(stage.median) : nil
+ distance_of_time_in_words(stage.median) if stage.median && !(stage.median.blank? || stage.median.zero?)
end
end