Accounts page enter button triggers edit on edit screen 90/1390/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Tue, 28 Mar 2017 17:34:41 +0000 (13:34 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Tue, 28 Mar 2017 17:34:41 +0000 (13:34 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
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);