Revert to previous code

So i don't need to update lotsa specs
This commit is contained in:
Brenda Wallace
2019-04-20 15:05:03 +12:00
parent bf4c8a83e1
commit 9c01ef94ac

View File

@@ -11,7 +11,7 @@ module HarvestsHelper
end
def display_human_quantity(harvest)
return harvest.plant_part.name unless harvest.quantity.present? && harvest.quantity > 0
return unless harvest.quantity.present? && harvest.quantity > 0
if harvest.unit == 'individual' # just the number
number_to_human(harvest.quantity, strip_insignificant_zeros: true)