1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

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

This commit is contained in:
ryanml 2022-09-23 13:03:27 -07:00 committed by GitHub
parent 2754f7e7ed
commit e74614dbec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({