Account for non-submitted mins and max

This commit is contained in:
Kevin Serrano 2017-10-25 11:47:40 -07:00
parent b3b9e16ec0
commit e7a22fc62b
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ BnAsDecimalInput.prototype.updateValidity = function (event) {
BnAsDecimalInput.prototype.constructWarning = function () {
const { name, min, max, scale } = this.props
const newMin = this.downsize(min.toString(10), scale)
const newMax = this.downsize(max.toString(10), scale)
const newMin = min && this.downsize(min.toString(10), scale)
const newMax = max && this.downsize(max.toString(10), scale)
let message = name ? name + ' ' : ''
if (min && max) {