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:
parent
ff5408c131
commit
6288139a41
1 changed files with 5 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue