Skip to content

Commit

Permalink
Flash Message Fix (#413)
Browse files Browse the repository at this point in the history
Fix done in order to pass the faf test. Apparently the flash messages can break easily.
  • Loading branch information
JaviTrek authored Jan 2, 2023
1 parent bdf8ffb commit 37caa66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/mixins/flash-messages.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ mixin flash-messages(messages)
ul.flash-errors
if flash.messages
if flash.messages[0].msg
- for (var i = 0; i < flash.messages.length; i++)
li <strong>#{flash.type}</strong> !{flash.messages[i].msg}
li <strong>#{flash.type}</strong> !{flash.messages[0].msg}
if flash.messages[1].msg
li <strong>#{flash.type}</strong> !{flash.messages[1].msg}

0 comments on commit 37caa66

Please sign in to comment.