aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/input-number.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-09-12 14:18:54 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-12 14:18:54 +0800
commit836bf2e1a38bb6917f1b7fe9db0604c8143c7adf (patch)
tree9971f4349e4ffb39f2769b562dd339f8e9f1854b /ui/app/components/input-number.js
parent1e83835ba8cce0fdf794092a8c55b6c68664204a (diff)
downloadtangerine-wallet-browser-836bf2e1a38bb6917f1b7fe9db0604c8143c7adf.tar.gz
tangerine-wallet-browser-836bf2e1a38bb6917f1b7fe9db0604c8143c7adf.tar.zst
tangerine-wallet-browser-836bf2e1a38bb6917f1b7fe9db0604c8143c7adf.zip
Add frontend validation to send-token
Diffstat (limited to 'ui/app/components/input-number.js')
-rw-r--r--ui/app/components/input-number.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js
index 63e841288..2824d77aa 100644
--- a/ui/app/components/input-number.js
+++ b/ui/app/components/input-number.js
@@ -22,7 +22,7 @@ InputNumber.prototype.componentWillMount = function () {
}
InputNumber.prototype.setValue = function (newValue) {
- const { fixed, min, onChange } = this.props
+ const { fixed, min = -1, onChange } = this.props
if (fixed) newValue = Number(newValue.toFixed(4))