aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/input-number.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/input-number.js')
-rw-r--r--ui/app/components/input-number.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js
index 5b4265459..c8bdd5ec5 100644
--- a/ui/app/components/input-number.js
+++ b/ui/app/components/input-number.js
@@ -16,9 +16,9 @@ function InputNumber () {
this.setValue = this.setValue.bind(this);
}
-InputNumber.prototype.componentWillMount == function () {
+InputNumber.prototype.componentWillMount = function () {
const { initValue = 0 } = this.props
-
+
this.setState({ value: initValue });
}
@@ -36,7 +36,7 @@ InputNumber.prototype.setValue = function (newValue) {
InputNumber.prototype.render = function () {
const { unitLabel, step = 1, min, placeholder } = this.props
const { value } = this.state
-
+
return h('div.customize-gas-input-wrapper', {}, [
h('input.customize-gas-input', {
placeholder,