From 63cdcfb43bb4bdecbb0f414fd74e7dbdf9ea1e2e Mon Sep 17 00:00:00 2001 From: xBlaz3kx Date: Mon, 25 May 2026 23:12:24 +0200 Subject: [PATCH] fix(accounts): show activity label instead of category for accounts supporting trades --- app/components/UI/account/chart.html.erb | 4 ++-- app/views/transactions/_transaction.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/components/UI/account/chart.html.erb b/app/components/UI/account/chart.html.erb index 91fb0b69cf..c14627575f 100644 --- a/app/components/UI/account/chart.html.erb +++ b/app/components/UI/account/chart.html.erb @@ -4,7 +4,7 @@
<%= tag.p title, class: "text-sm font-medium text-secondary" %> - <% if account.investment? %> + <% if account.supports_trades? %> <%= render "investments/value_tooltip", balance: account.balance_money, holdings: holdings_value_money, cash: account.cash_balance_money %> <% end %>
@@ -19,7 +19,7 @@ <%= form_with url: account_path(account), method: :get, data: { controller: "auto-submit-form" } do |form| %>
- <% if account.investment? %> + <% if account.supports_trades? %> <%= form.select :chart_view, [[t(".views.total_value"), "balance"], [t(".views.holdings"), "holdings_balance"], [t(".views.cash"), "cash_balance"]], { selected: view }, diff --git a/app/views/transactions/_transaction.html.erb b/app/views/transactions/_transaction.html.erb index 8bccd8b4e1..9aff39d030 100644 --- a/app/views/transactions/_transaction.html.erb +++ b/app/views/transactions/_transaction.html.erb @@ -180,8 +180,8 @@