Cycle Analytics: A value of 0 is changed to nil.

This commit is contained in:
Timothy Andrew 2016-09-20 13:43:46 +05:30
parent 4ff8d5d28d
commit 0b97b42d60

View file

@ -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