1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Code style fix.

This commit is contained in:
Kevin Serrano 2016-06-28 12:49:17 -07:00
parent 39a758d7c3
commit abcf762184

View File

@ -18,7 +18,7 @@ EditableLabel.prototype.render = function () {
return h('div.editable-label', [
h('input.sizing-input', {
defaultValue: props.textValue,
maxLength: "30",
maxLength: '30',
onKeyPress: (event) => {
this.saveIfEnter(event)
},
@ -45,7 +45,7 @@ EditableLabel.prototype.saveIfEnter = function (event) {
EditableLabel.prototype.saveText = function () {
var container = findDOMNode(this)
var text = container.querySelector('.editable-label input').value
var truncatedText = text.substring(0,30)
var truncatedText = text.substring(0, 30)
this.props.saveText(truncatedText)
this.setState({ isEditingLabel: false, textLabel: truncatedText })
}