mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fixes double account creation when using keyboard controls (#15077)
This commit is contained in:
parent
2754f7e7ed
commit
e74614dbec
@ -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…
Reference in New Issue
Block a user