diff --git a/src/DebugBar/Resources/widgets/mails/widget.js b/src/DebugBar/Resources/widgets/mails/widget.js
index 0d824d1c..16045f7d 100644
--- a/src/DebugBar/Resources/widgets/mails/widget.js
+++ b/src/DebugBar/Resources/widgets/mails/widget.js
@@ -16,7 +16,7 @@
this.$list = new PhpDebugBar.Widgets.ListWidget({ itemRenderer: function(li, mail) {
$('').addClass(csscls('subject')).text(mail.subject).appendTo(li);
$('').addClass(csscls('to')).text(mail.to).appendTo(li);
- if (mail.html || mail.html) {
+ if (mail.body || mail.html) {
var header = $('').addClass(csscls('filename')).text('');
$('View Mail').on('click', function () {
var popup = window.open('about:blank', 'Mail Preview', 'width=650,height=440,scrollbars=yes');