Customize Order Confirmation email based on product SKU

Hi all.

We have always had a customized Order confirmation email, that contains an if statement to send 2 different versions of our order confirmation email based on SKU. I have just added a 3rd SKU.

What happens now, it that the body of the message no longer appears in the email when ordering SKU number 2, shown in image below. SKU 1, and SKU 3 that I just added, are fine. Any ideas what might be happening?

Here is the original code:

{% for line in line_items %}
{% if line.title contains 'Smart Nora' %}
{% capture email_title %}Thank you for placing your order! {% endcapture %}
{% capture email_body %}Hi {{ customer.first_name }}, 
{% if line.sku == 'SKU1' %}
<br>We're excited to have you among the thousands of people who will experience Smart Nora. Better Sleep is coming your way.
<br><br> We will send you additional information while we prepare your order so you know exactly where to start when it is time to setup Smart Nora in your bedroom. 

{% elsif line.sku == 'SKU2' %}
<br>We're excited to have you among the thousands of people who will experience Smart Nora. Better sleep is coming your way!
{% endif %}

<br><br>We look forward to exceeding your expectations and creating a great experience for you.

<br><br><b>Please do not reply to this email.</b> For any questions, visit our <a href=https://support.smartnora.com> support page</a> and our team will be happy to assist you.

<br><br>All the best 
<br>Team Nora
  {% endcapture %}

{% else %}
{% capture email_title %}Thank you for using Smart Nora! {% endcapture %}
{% capture email_body %}Hi {{ customer.first_name }}, <br>Your replacement part is on its way.

<br><br>You will receive a tracking code as soon as it leaves the warehouse.

<br><br><b>Please do not reply to this email.</b> For any questions, visit our <a href=https://support.smartnora.com> support page</a> and our team will be happy to assist you.

<br><br>All the best 
<br>Team Nora
  {% endcapture %}
{% endif %}
{% endfor %}

Here is the code after I added the 3rd SKU.

{% for line in line_items %}
{% if line.title contains 'Nora' %}
{% capture email_title %}Thank you for placing your order! {% endcapture %}
{% capture email_body %}Hi {{ customer.first_name }}, 
{% if line.sku == 'SKU1' %}
<br>We're excited to have you among the thousands of people who will experience Smart Nora. Better Sleep is coming your way.
<br><br> We will send you additional information while we prepare your order so you know exactly where to start when it is time to setup Smart Nora in your bedroom.<br><br>We look forward to exceeding your expectations and creating a great experience for you.

{% elsif line.sku == 'SKU2' %}
<br>We're excited to have you among the thousands of people who will experience Smart Nora. Better sleep is coming your way!
<br><br>We look forward to exceeding your expectations and creating a great experience for you.

{% elsif line.sku == 'SKU3' %}
<br><br>We're excited to have you among the thousands of people who will experience Smart Nora. Better sleep is coming your way!
<br><br>Looking forward to bringing you an enhanced experience with Nora
{% endif %}

<br><br><b>Please do not reply to this email.</b> For any questions, visit our <a href=https://support.smartnora.com> support page</a> and our team will be happy to assist you.

<br><br>All the best 
<br>Team Nora
  {% endcapture %}

{% else %}
{% capture email_title %}Thank you for using Smart Nora! {% endcapture %}
{% capture email_body %}Hi {{ customer.first_name }}, <br>Your replacement part is on its way.

<br><br>You will receive a tracking code as soon as it leaves the warehouse.

<br><br><b>Please do not reply to this email.</b> For any questions, visit our <a href=https://support.smartnora.com> support page</a> and our team will be happy to assist you.

<br><br>All the best 
<br>Team Nora
  {% endcapture %}
{% endif %}
{% endfor %}

I don’t know what is the issue, I added this code to my template and it seems to work well.

SKU: {{ line.sku }}