aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-10-26 02:47:40 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-10-26 02:47:40 +0800
commite7a22fc62bc8063ed89ddbaccd34e6311e2a6017 (patch)
tree0d4a55cb93f953937fdcb324886835b98d82821b /ui/app/components
parentb3b9e16ec0d2eced756a63caa6d9c2e851c60d0e (diff)
downloadtangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar.gz
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar.bz2
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar.lz
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar.xz
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.tar.zst
tangerine-wallet-browser-e7a22fc62bc8063ed89ddbaccd34e6311e2a6017.zip
Account for non-submitted mins and max
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/bn-as-decimal-input.js4
1 files 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) {