diff --git a/app/views/estimates/_list.html.erb b/app/views/estimates/_list.html.erb index 2429fc8..ca03da6 100644 --- a/app/views/estimates/_list.html.erb +++ b/app/views/estimates/_list.html.erb @@ -1,4 +1,4 @@ -<% if estimates.empty? %> +<% unless estimates.empty? %> <% estimates.sort.reverse.each do |estimate| %>
diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 0a2c801..168e431 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -1,4 +1,4 @@ -<% if invoices.empty? %> +<% unless invoices.empty? %> <%= form_with(url: invoice_path, method: :get) do |form| %>