From: Laurence Maultsby Date: Tue, 28 Mar 2017 17:34:41 +0000 (-0400) Subject: Accounts page enter button triggers edit on edit screen X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a58c278f6aa6cbeecc00ef76ee11612c7e867b7c;p=osm%2FUI.git Accounts page enter button triggers edit on edit screen Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/accounts/src/account/account.jsx b/skyquake/plugins/accounts/src/account/account.jsx index e588e744a..b7dbf358c 100644 --- a/skyquake/plugins/accounts/src/account/account.jsx +++ b/skyquake/plugins/accounts/src/account/account.jsx @@ -169,7 +169,7 @@ class Account extends React.Component { } evaluateSubmit = (e) => { if (e.keyCode == 13) { - if (this.props.edit) { + if (this.props.params.name != 'create') { this.update(e); } else { this.create(e);