From 09711853a626b384b913ad9f9700ac0c9ba9a457 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 29 Mar 2022 10:48:55 +0200 Subject: [PATCH] Do not display a message if there's no content --- assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index a883f208..660bee3c 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -25,7 +25,7 @@ window.App = (function () { response = {message: jqXHR.responseText}; // String response } - if (!response) { + if (!response || !response.message) { return; } @@ -37,7 +37,7 @@ window.App = (function () { 'html': [ $('
', { 'class': 'card-body', - 'html': response.message || '→ No error information provided.' + 'html': response.message }) ] }).appendTo('#message-box');