mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Account for non-submitted mins and max
This commit is contained in:
parent
b3b9e16ec0
commit
e7a22fc62b
@ -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…
Reference in New Issue
Block a user