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-Tag: v2.0.0~21 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=e0659bbf6ff4771c5c7da29997d0c683b702be35 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);