From 54596d51f747baa98de2376b23e8d3f9139875bb Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Wed, 9 Oct 2024 11:38:34 -0400 Subject: [PATCH] Fix account pill on dashboard (#1270) --- app/views/pages/dashboard.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb index 37b21147..68023607 100644 --- a/app/views/pages/dashboard.html.erb +++ b/app/views/pages/dashboard.html.erb @@ -135,9 +135,9 @@
<% @top_savers.first(3).each do |account| %> - <%= link_to account, class: "border border-alpha-black-25 rounded-full p-1 pr-2 flex items-center gap-1 text-xs text-gray-900 font-medium hover:bg-gray-25" do %> - <%= image_tag account_logo_url(account), class: "w-5 h-5" %> - <% unless account.savings_rate.infinite? %> + <% unless account.savings_rate.infinite? %> + <%= link_to account, class: "border border-alpha-black-25 rounded-full p-1 pr-2 flex items-center gap-1 text-xs text-gray-900 font-medium hover:bg-gray-25" do %> + <%= image_tag account_logo_url(account), class: "w-5 h-5" %> <%= account.savings_rate > 0 ? "+" : "-" %><%= number_to_percentage(account.savings_rate.abs * 100, precision: 2) %> <% end %> <% end %>