Commit 0b97b42d authored by Timothy Andrew's avatar Timothy Andrew

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

parent 4ff8d5d2
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment