From e0659bbf6ff4771c5c7da29997d0c683b702be35 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Tue, 28 Mar 2017 13:34:41 -0400 Subject: [PATCH] Accounts page enter button triggers edit on edit screen Signed-off-by: Laurence Maultsby --- skyquake/plugins/accounts/src/account/account.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1