diff --git a/app/components/goals/funding_accounts_breakdown_component.html.erb b/app/components/goals/funding_accounts_breakdown_component.html.erb index cc44eb1c4..a40934758 100644 --- a/app/components/goals/funding_accounts_breakdown_component.html.erb +++ b/app/components/goals/funding_accounts_breakdown_component.html.erb @@ -1,27 +1,61 @@ <% if total.zero? %>
<%= t("goals.show.no_contributions_yet") %>
<% else %> -<%= row[:account].name %>
-<%= row[:account].subtype&.titleize || row[:account].accountable_type %> · <%= t("goals.show.funding_balance", amount: Money.new(row[:account].balance, row[:account].currency).format) %>
+<%= row[:account].name %>
+<%= percent_for(row[:amount]) %>%
<%= row[:money].format %>
-<%= percent_for(row[:amount]) %>% <%= t("goals.show.of_saved") %>
+ <% end %> +<%= t("goals.show.funding_table.weight") %>
<%= t("goals.show.funding_table.value") %>
<%= row[:account].name %>
+<%= row[:money].format(precision: 0) %>
+