Match code-style better

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-07-29 22:27:31 +01:00
parent a97e2e6ef2
commit 31ab97772c

View file

@ -548,9 +548,11 @@ module.exports = React.createClass({
}, },
_onPaste: function(e) { _onPaste: function(e) {
const text = e.clipboardData.getData("text"); // Prevent the text being pasted into the textarea
this._addAddressesToList(text.split(/[\s,]+/));
e.preventDefault(); e.preventDefault();
const text = e.clipboardData.getData("text");
// Process it as a list of addresses to add instead
this._addAddressesToList(text.split(/[\s,]+/));
}, },
render: function() { render: function() {