diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 2ff37d308..56daec458 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -23,12 +23,16 @@ <%= summary_list.with_row do |row| %> <% row.with_key { attr[:name] } %> <% row.with_value { details_html(attr, @organisation) } %> - <% row.with_action( - text: organisation_action_text(attr, @organisation), - visually_hidden_text: attr[:name].to_s.humanize.downcase, - href: edit_organisation_path(@organisation), - html_attributes: { "data-qa": "change-#{attr[:name].downcase}" }, - ) %> + <% if attr[:value] %> + <% row.with_action( + text: organisation_action_text(attr, @organisation), + visually_hidden_text: attr[:name].to_s.humanize.downcase, + href: edit_organisation_path(@organisation), + html_attributes: { "data-qa": "change-#{attr[:name].downcase}" }, + ) %> + <% else %> + <% row.with_action %> + <% end %> <% end %> <% else %> <%= summary_list.with_row do |row| %>