Don't display incompatible investment's table if empty
This commit is contained in:
@@ -42,8 +42,10 @@
|
||||
heading_price: @heading.price,
|
||||
investments: @investments.compatible %>
|
||||
|
||||
<%= render 'results_table', results_type: :incompatible,
|
||||
title: t("budgets.results.incompatibles"),
|
||||
heading_price: @heading.price,
|
||||
investments: @investments.incompatible %>
|
||||
<% if @investments.incompatible.present? %>
|
||||
<%= render 'results_table', results_type: :incompatible,
|
||||
title: t("budgets.results.incompatibles"),
|
||||
heading_price: @heading.price,
|
||||
investments: @investments.incompatible %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user