From 9c01ef94acfedf047176cfbf6bc26cdd8682bdae Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 20 Apr 2019 15:05:03 +1200 Subject: [PATCH] Revert to previous code So i don't need to update lotsa specs --- app/helpers/harvests_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/harvests_helper.rb b/app/helpers/harvests_helper.rb index 8fce71735..740f99423 100644 --- a/app/helpers/harvests_helper.rb +++ b/app/helpers/harvests_helper.rb @@ -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)