From 6439d03075dc2cba8e70be139d1416552ab5dd04 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Tue, 31 Jan 2023 08:47:55 -0600 Subject: [PATCH] Fix #17439 - Prevent event error when user presses enter key during onboarding (#17497) --- ui/pages/onboarding-flow/create-password/create-password.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pages/onboarding-flow/create-password/create-password.js b/ui/pages/onboarding-flow/create-password/create-password.js index 4b10be84e5a4..78eef545a5d3 100644 --- a/ui/pages/onboarding-flow/create-password/create-password.js +++ b/ui/pages/onboarding-flow/create-password/create-password.js @@ -133,7 +133,7 @@ export default function CreatePassword({ }; const handleCreate = async (event) => { - event.preventDefault(); + event?.preventDefault(); if (!isValid) { return;