1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49: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 %>
<% if account.loan.term_months.present? %>
<%= pluralize(account.loan.term_months / 12, "year") %>
<% if account.loan.term_months < 12 %>
<%= pluralize(account.loan.term_months, "month") %>
<% else %>
<%= pluralize(account.loan.term_months / 12, "year") %>
<% end %>
<% else %>
<%= t(".unknown") %>
<% end %>