1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix #17439 - Prevent event error when user presses enter key during onboarding (#17497)

This commit is contained in:
David Walsh 2023-01-31 08:47:55 -06:00 committed by GitHub
parent 18a1beb3dd
commit 6439d03075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ export default function CreatePassword({
};
const handleCreate = async (event) => {
event.preventDefault();
event?.preventDefault();
if (!isValid) {
return;