From ded42a8c33b57f5370fb43b577e71cd31310ef21 Mon Sep 17 00:00:00 2001 From: Zach Gollwitzer Date: Thu, 30 Jan 2025 15:31:16 -0500 Subject: [PATCH] Add back txn logos This reverts commit b78fd1d7558a109cc5f50352d271ead307d67c6c. --- app/views/account/transactions/_transaction.html.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/account/transactions/_transaction.html.erb b/app/views/account/transactions/_transaction.html.erb index 7564e7ac..fcfdb29c 100644 --- a/app/views/account/transactions/_transaction.html.erb +++ b/app/views/account/transactions/_transaction.html.erb @@ -12,7 +12,11 @@
<%= content_tag :div, class: ["flex items-center gap-2"] do %> - <%= render "shared/circle_logo", name: entry.display_name, size: "sm" %> + <% if transaction.merchant&.icon_url %> + <%= image_tag transaction.merchant.icon_url, class: "w-6 h-6 rounded-full", loading: "lazy" %> + <% else %> + <%= render "shared/circle_logo", name: entry.display_name, size: "sm" %> + <% end %>