Fixes #44278

Signed-off-by: Stan Silvert <ssilvert@redhat.com>
This commit is contained in:
Stan Silvert
2025-11-17 15:28:37 -05:00
committed by Marek Posolda
parent 0825f22331
commit fc67e54fde

View File

@@ -159,7 +159,10 @@ export const ResetPasswordDialog = ({
id="password"
onChange={async (e) => {
await onChange(e);
if (passwordConfirmation !== e.currentTarget.value) {
if (
e.currentTarget &&
passwordConfirmation !== e.currentTarget.value
) {
setError("passwordConfirmation", {
message: t("confirmPasswordDoesNotMatch"),
});