Hashir-Jamil / LongBox

MIT License
1 stars 1 forks source link

[BR7] Adding a comic book and leaving all fields empty #7

Closed ahan10 closed 7 months ago

ahan10 commented 7 months ago

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.

Hashir-Jamil commented 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