1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-27 17:19:39 +02:00

Fix loan term display

This commit is contained in:
Zach Gollwitzer 2024-10-09 18:34:20 -04:00
parent ff5408c131
commit 6288139a41

View file

@ -29,7 +29,11 @@
<%= summary_card title: t(".term") do %> <%= summary_card title: t(".term") do %>
<% if account.loan.term_months.present? %> <% if account.loan.term_months.present? %>
<% if account.loan.term_months < 12 %>
<%= pluralize(account.loan.term_months, "month") %>
<% else %>
<%= pluralize(account.loan.term_months / 12, "year") %> <%= pluralize(account.loan.term_months / 12, "year") %>
<% end %>
<% else %> <% else %>
<%= t(".unknown") %> <%= t(".unknown") %>
<% end %> <% end %>