diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 13d6e992..f13a0d26 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -275,14 +275,15 @@ }, sendMessage: function(e) { + var toast; if (extension.expired()) { - var toast = new Whisper.ExpiredToast(); + toast = new Whisper.ExpiredToast(); toast.$el.insertAfter(this.$el); toast.render(); return; } if (this.model.isPrivate() && storage.isBlocked(this.model.id)) { - var toast = new Whisper.BlockedToast(); + toast = new Whisper.BlockedToast(); toast.$el.insertAfter(this.$el); toast.render(); return;