I'm styling my flash messages in Craft Commerce - I added if statements to detect the type of flash message. I noticed however that the message no longer displays but the styling does get picked up. Any ideas what I might need to do here?

```
{% if craft.session.getFlash('notice') %}
    <div data-alert class="alert-box info radius">
      {{ craft.session.getFlash('notice') }}
      <a href="#" class="close">&times;</a>
    </div>
{% endif %}

{% if craft.session.getFlash('error') %}
    <div data-alert class="alert-box alert radius">
      {{ craft.session.getFlash('error') }}
      <a href="#" class="close">&times;</a>
    </div>
{% endif %}

```