Account for non-submitted mins and max

feature/default_network_editable
Kevin Serrano 7 years ago
parent b3b9e16ec0
commit e7a22fc62b
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 4
      ui/app/components/bn-as-decimal-input.js

@ -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) {

Loading…
Cancel
Save