Closed ahan10 closed 7 months ago
Issue is resolved in commit: 0b93bd4feb49f14979eba6f5642cf729cc8f05be by creating client side form input contract to ensure input is not empty before user can click the add comic book button on the add comic book form
Description: If all the fields of the book are left empty a NumberFormatException is thrown
Steps to reproduce: 1) Login into the app using valid credentials. 2) Navigate to the ‘Add Comic Page’ 3) Not filling any of the fields. 4) Not selecting the is favorite checkbox. 5) Clicking the ‘Enter Comic Book’ button. 6) Error thrown in the console of compiler. 7) Database not updated.
Suggested fix: Having the series title as a required field, and the integer fields are set to 0 as a default value.