Fix voting on option index "zero"

This commit is contained in:
QuickMythril 2023-11-19 22:20:06 -05:00 committed by GitHub
parent bf64ab88c5
commit bc3cc64270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1515,7 +1515,7 @@ class WebBrowser extends LitElement {
const missingFields = []
requiredFields.forEach((field) => {
if (!data[field]) {
if (!data[field] && data[field] !== 0) {
missingFields.push(field)
}
})