diff --git a/static/js/app.js b/static/js/app.js index 255742d..ad6adec 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -182,10 +182,11 @@ function handle_ajax_return( }); if (data && data.success) { - if (success_message) alertify.notify(success_message, "success"); + if (!(data.messages && data.messages.length) && success_message) + alertify.notify(success_message, "success", 5); return true; } - if (!data.errors) + if (!(data.errors && data.errors.length)) alertify.notify( default_error ?? _(