Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Jun 18, 2024
1 parent 9d5d158 commit 86d8bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@ public void validateApproval(JsonCommand command, Long loanId) {
}

BigDecimal approvedLoanAmount = command.bigDecimalValueOfParameterNamed(LoanApiConstants.approvedLoanAmountParameterName);
if (approvedLoanAmount == null) {
if (approvedLoanAmount != null) {
compareApprovedToProposedPrincipal(loan, approvedLoanAmount);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ public CommandProcessingResult approveApplication(final Long loanId, final JsonC

if (!changes.isEmpty()) {
final String noteText = command.stringValueOfParameterNamed("note");
createNote(noteText, loan).ifPresent(note -> changes.put("note", note));
createNote(noteText, loan).ifPresent(note -> changes.put("note", noteText));
businessEventNotifierService.notifyPostBusinessEvent(new LoanApprovedBusinessEvent(loan));
}

Expand Down

0 comments on commit 86d8bad

Please sign in to comment.