From e7a22fc62bc8063ed89ddbaccd34e6311e2a6017 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Wed, 25 Oct 2017 11:47:40 -0700 Subject: [PATCH] Account for non-submitted mins and max --- ui/app/components/bn-as-decimal-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/components/bn-as-decimal-input.js b/ui/app/components/bn-as-decimal-input.js index d3658b202..000ac22c8 100644 --- a/ui/app/components/bn-as-decimal-input.js +++ b/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) {