Cycle Analytics: A value of 0 is changed to nil
.
This commit is contained in:
parent
4ff8d5d28d
commit
0b97b42d60
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue