From 226301607f554fedacd4870b20694c0ac2a214f8 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 26 Jan 2023 08:15:05 +0000 Subject: [PATCH] refactor --- app/views/logs/_log_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/logs/_log_list.html.erb b/app/views/logs/_log_list.html.erb index bb5ca5cf2..1aeaa03f2 100644 --- a/app/views/logs/_log_list.html.erb +++ b/app/views/logs/_log_list.html.erb @@ -1,6 +1,6 @@

<%= render(SearchResultCaptionComponent.new(searched:, count: pagy.count, item_label:, total_count:, item: "logs", path: request.path)) %> - <% if logs&.first&.form&.type == "lettings" %> + <% if logs&.first&.lettings? %> <%= govuk_link_to "Download (CSV)", csv_download_url, type: "text/csv" %> <% end %>