diff --git a/app/views/account/trades/show.html.erb b/app/views/account/trades/show.html.erb index 7293f731..0f07e9ad 100644 --- a/app/views/account/trades/show.html.erb +++ b/app/views/account/trades/show.html.erb @@ -41,12 +41,14 @@ <% end %> -
-
<%= t(".current_market_price_label") %>
-
<%= format_money trade.security.current_price %>
-
+ <% if trade.security.current_price.present? %> +
+
<%= t(".current_market_price_label") %>
+
<%= format_money trade.security.current_price %>
+
+ <% end %> - <% if trade.buy? %> + <% if trade.buy? && trade.unrealized_gain_loss.present? %>
<%= t(".total_return_label") %>