Inverted conditionals in estimates and invoices lists to use 'unless'

This commit is contained in:
ricky committed 2026-01-31 12:54:07 -05:00
1 parent 92460392b9
commit 6f33e9d23d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<% if estimates.empty? %>
<% unless estimates.empty? %>
<% estimates.sort.reverse.each do |estimate| %>
<div class="row">
+1 -1
View File
@@ -1,4 +1,4 @@
<% if invoices.empty? %>
<% unless invoices.empty? %>
<%= form_with(url: invoice_path, method: :get) do |form| %>