Accounts page enter button triggers edit on edit screen
[osm/UI.git] / skyquake / plugins / accounts / src / account / account.jsx
index e588e74..b7dbf35 100644 (file)
@@ -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);