Skip to content

Commit

Permalink
Fixes double account creation when using keyboard controls (#15077)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanml authored Sep 23, 2022
1 parent 2754f7e commit e74614d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/pages/create-account/new-account.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit e74614d

Please sign in to comment.