From edf62393a4281fb15a279d002100eff4592b15b8 Mon Sep 17 00:00:00 2001 From: Josh Williams Date: Wed, 16 Aug 2023 12:43:00 +0000 Subject: [PATCH] Fixed date of birth display --- app/helpers/entity_helper.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/helpers/entity_helper.rb b/app/helpers/entity_helper.rb index f675196d..24aa3bc7 100644 --- a/app/helpers/entity_helper.rb +++ b/app/helpers/entity_helper.rb @@ -22,11 +22,9 @@ def entity_attributes_snippet(entity) parts = [] if entity.natural_person? parts << entity.country.try(:nationality) - date_of_birth(entity).presence - #date_of_birth(entity).presence.try do |date_of_birth| - # print("I'm trying date_of_birth #{date_of_birth}\n") - # parts << t("helpers.entities.entity_attributes_snippet.date_of_birth", date_of_birth: date_of_birth) - #end + date_of_birth(entity).presence.try do |date_of_birth| + parts << t("helpers.entities.entity_attributes_snippet.date_of_birth", date_of_birth: date_of_birth) + end else parts << entity_jurisdiction(entity, short: true) parts << "(#{entity.incorporation_date} – #{entity.dissolution_date})" if entity.incorporation_date?