diff --git a/app/views/people/_unclaimed_person.html.haml b/app/views/people/_unclaimed_person.html.haml index f021c9af5..c2eed4ba9 100644 --- a/app/views/people/_unclaimed_person.html.haml +++ b/app/views/people/_unclaimed_person.html.haml @@ -1,6 +1,6 @@ :ruby - name = people.first.name.name - name_id ||= people.first.name.id + name = people.first&.name&.name + name_id ||= people.first&.name&.id from_show_page ||= false unclaimed_people = people if from_show_page unclaimed_people ||= people.to_a.first(UNCLAIMED_TILE_LIMIT)