diff --git a/app/components/UI/account/chart.html.erb b/app/components/UI/account/chart.html.erb index 91fb0b69c..c14627575 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 8bccd8b4e..9aff39d03 100644 --- a/app/views/transactions/_transaction.html.erb +++ b/app/views/transactions/_transaction.html.erb @@ -180,8 +180,8 @@