diff --git a/src/components/Profile/PasswordChangeForm.tsx b/src/components/Profile/PasswordChangeForm.tsx index 99b8417c..cd3e9d2e 100644 --- a/src/components/Profile/PasswordChangeForm.tsx +++ b/src/components/Profile/PasswordChangeForm.tsx @@ -60,6 +60,11 @@ export const PasswordChangeDialog: FC = ({open, close submitFormData(data) } + const onClose = () => { + reset() + close() + } + const requiredRule = {required: '* Toto pole nemôže byť prázdne.'} return ( @@ -105,10 +110,10 @@ export const PasswordChangeDialog: FC = ({open, close } actions={ <> + - } /> diff --git a/src/components/Profile/ProfileForm.tsx b/src/components/Profile/ProfileForm.tsx index c9b6879f..cd636cce 100644 --- a/src/components/Profile/ProfileForm.tsx +++ b/src/components/Profile/ProfileForm.tsx @@ -118,12 +118,12 @@ export const ProfileForm: FC = () => {

* takto označéné polia sú povinné

- +