Fix login error message

This commit is contained in:
Robbie Antenesse 2019-05-29 15:47:03 -06:00
parent cc60512859
commit cdc3673d84
1 changed files with 2 additions and 2 deletions

View File

@ -30,9 +30,9 @@ export function logIn() {
saveToken(successData.token); saveToken(successData.token);
window.account = successData.user; window.account = successData.user;
}, errorData => { }, errorData => {
errorHTML += errorData; errorHTML += '<p class="bold red">' + errorData + '</p>';
}).then(() => { }).then(() => {
createAccountErrorMessages.innerHTML = errorHTML; loginErrorMessages.innerHTML = errorHTML;
if (errorHTML === '') { if (errorHTML === '') {
const loginModal = document.getElementById('loginModal'); const loginModal = document.getElementById('loginModal');
loginModal.parentElement.removeChild(loginModal); loginModal.parentElement.removeChild(loginModal);