Skip to content

Commit

Permalink
Fixed date of birth display
Browse files Browse the repository at this point in the history
  • Loading branch information
spacesnottabs committed Aug 16, 2023
1 parent 3148ced commit edf6239
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/helpers/entity_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit edf6239

Please sign in to comment.