diff --git a/exmplate/script.js b/exmplate/script.js index 67c7f88..d18e4e8 100644 --- a/exmplate/script.js +++ b/exmplate/script.js @@ -159,6 +159,9 @@ for (let key in data.errors) { errorMessage += data.errors[key] + '
'; } + if (errorMessage === '') { + errorMessage = data.message; + } setError(errorMessage, button); return }