diff --git a/src/js/account/login.js b/src/js/account/login.js index 7c6fefd..6eed4a2 100644 --- a/src/js/account/login.js +++ b/src/js/account/login.js @@ -30,9 +30,9 @@ export function logIn() { saveToken(successData.token); window.account = successData.user; }, errorData => { - errorHTML += errorData; + errorHTML += '
' + errorData + '
'; }).then(() => { - createAccountErrorMessages.innerHTML = errorHTML; + loginErrorMessages.innerHTML = errorHTML; if (errorHTML === '') { const loginModal = document.getElementById('loginModal'); loginModal.parentElement.removeChild(loginModal);