Skip to content

Commit

Permalink
fix: unstable let expression
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 27, 2025
1 parent 10bcd8d commit 4f64fc3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions core/credit/src/credit_facility/interest_outstanding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ pub(super) fn project<'a>(
let mut overdue = UsdCents::ZERO;
let mut defaulted = UsdCents::ZERO;
for accrual in accruals {
if let Some(interest_overdue_duration) = terms.interest_overdue_duration
&& interest_overdue_duration.is_past_end_date(accrual.accrued_at)
{
defaulted += accrual.remaining;
if let Some(interest_overdue_duration) = terms.interest_overdue_duration {
if interest_overdue_duration.is_past_end_date(accrual.accrued_at) {
defaulted += accrual.remaining;
continue;
}
} else if terms
.interest_due_duration
.is_past_end_date(accrual.accrued_at)
Expand Down

0 comments on commit 4f64fc3

Please sign in to comment.