Skip to content

Commit

Permalink
docs: Add comment to reassure logic is correct, closes #412
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 10, 2024
1 parent 738dc1e commit 8f25abc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def send(
template_name = "rejected_application_no_alternatives"

case MessageType.APPROVED_APPLICATION:
# If a lender has a `default_pre_approval_message`, they cannot send custom `additional_comments`.
if application.lender.default_pre_approval_message:
additional_comments = application.lender.default_pre_approval_message
elif application.lender_approved_data.get("additional_comments"):
Expand Down

0 comments on commit 8f25abc

Please sign in to comment.