feat: modal base styling complete

This commit is contained in:
Smigz 2023-11-21 23:08:09 -05:00
parent 72997086cc
commit 068639b1fc
3 changed files with 57 additions and 6 deletions

View file

@ -88,6 +88,10 @@ submitButton.addEventListener('click', event => {
const readBtn = document.querySelector('#read-button').value;
const bookIsRead = readBtn === 'on' ? true : false;
if (author === "" || title === "") {
return
}
// create book object
const newBook = new Book(title, author, bookIsRead);