X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Faccounts%2Fsrc%2Faccount%2Faccount.jsx;h=4f011cb1ae7053979f131b05d72155b749c4650a;hb=79dc9d2eaabb4e0eb77aacb16a620ca254c8d983;hp=e588e744a257c728a7690316fcf986464d8bc05d;hpb=223366ccc6537984552d07f827750e14e83219b8;p=osm%2FUI.git diff --git a/skyquake/plugins/accounts/src/account/account.jsx b/skyquake/plugins/accounts/src/account/account.jsx index e588e744a..4f011cb1a 100644 --- a/skyquake/plugins/accounts/src/account/account.jsx +++ b/skyquake/plugins/accounts/src/account/account.jsx @@ -106,8 +106,8 @@ class Account extends React.Component { self.props.router.push({pathname:'accounts'}); self.props.flux.actions.global.hideScreenLoader.defer(); }, - function() { - self.props.flux.actions.global.showNotification("There was an error creating your account. Please contact your system administrator."); + function(error) { + self.props.flux.actions.global.showNotification(error); self.props.flux.actions.global.hideScreenLoader.defer(); }); } @@ -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);