CodeForPhilly / chime

COVID-19 Hospital Impact Model for Epidemics
https://codeforphilly.github.io/chime/
MIT License
205 stars 151 forks source link

Adding minimums to prevent UI crash on validation/divide by 0 errors … #490

Closed Kolbeckenstein closed 4 years ago

Kolbeckenstein commented 4 years ago

…(https://github.com/CodeForPhilly/chime/issues/414)

Noticed that most of these crashes were due to an uncaught validation (seems like it was everything in the Severity Parameters section) or a divide by 0 error. As a patch, suggesting just having the UI enforce minimums to prevent the user from violating one of the validation policies. Thoughts?