From 8f25abcc9f3dbadad9cfc8fe72f3561dd6d85525 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:53:06 -0400 Subject: [PATCH] docs: Add comment to reassure logic is correct, closes #412 --- app/mail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/mail.py b/app/mail.py index ce8499da..3f8a7a98 100644 --- a/app/mail.py +++ b/app/mail.py @@ -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"):