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);
window.account = successData.user;
}, errorData => {
errorHTML += errorData;
errorHTML += '<p class="bold red">' + errorData + '</p>';
}).then(() => {
createAccountErrorMessages.innerHTML = errorHTML;
loginErrorMessages.innerHTML = errorHTML;
if (errorHTML === '') {
const loginModal = document.getElementById('loginModal');
loginModal.parentElement.removeChild(loginModal);