From 6f33e9d23dd562623cce47567fab93a93d813523 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 31 Jan 2026 12:54:07 -0500 Subject: [PATCH] Inverted conditionals in estimates and invoices lists to use 'unless' --- app/views/estimates/_list.html.erb | 2 +- app/views/invoices/_list.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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| %>