When mentors decline a request they allowed to not specify the reason.
The issue
Currently, even if they didn't leave a reason, the email says
They provided the reason below, which we hope will help you find your next mentor:
The solution
Don't include the following part if the reason is empty
|
<p> |
|
They provided the reason below, which we hope will help you find your next |
|
mentor: |
|
</p> |
|
|
|
<pre><%= reason %></pre> |
|
|
When mentors decline a request they allowed to not specify the reason.
The issue
Currently, even if they didn't leave a reason, the email says
The solution
Don't include the following part if the
reasonis emptyfind-a-mentor-api/content/email_templates/mentorship-declined.html
Lines 29 to 35 in 4a68ae9