Fixes double account creation when using keyboard controls (#15077)

feature/default_network_editable
ryanml 2 years ago committed by GitHub
parent 2754f7e7ed
commit e74614dbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ui/pages/create-account/new-account.component.js

@ -21,7 +21,8 @@ export default class NewAccountCreateForm extends Component {
const { history, createAccount, mostRecentOverviewPage, accounts } =
this.props;
const createClick = (_) => {
const createClick = (event) => {
event.preventDefault();
createAccount(newAccountName || defaultAccountName)
.then(() => {
this.context.trackEvent({

Loading…
Cancel
Save