Skip to content

Commit

Permalink
Fix number detection
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtsunificator committed Sep 19, 2023
1 parent 8978088 commit e59f9e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/form.event.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class FormEventListener extends EventListener {
data[key] = true
} else {
const value = parseFloat(data[key])
if(!isNaN(value)) {
if(!isNaN(value) && isFinite(data[key])) {
data[key] = value
}
}
Expand Down

0 comments on commit e59f9e2

Please sign in to comment.