diff --git a/FrontEnd/src/components/MiniComponents/AdminSubmitButton.jsx b/FrontEnd/src/components/MiniComponents/AdminSubmitButton.jsx
index 3f7a84ad..cdc62df1 100644
--- a/FrontEnd/src/components/MiniComponents/AdminSubmitButton.jsx
+++ b/FrontEnd/src/components/MiniComponents/AdminSubmitButton.jsx
@@ -1,11 +1,12 @@
import classes from './AdminSubmitButton.module.css';
-const AdminSubmitButton = () => {
+const AdminSubmitButton = ({ disabled }) => {
return (
diff --git a/FrontEnd/src/pages/AdminPage/AdminProfile/AdminInfo.jsx b/FrontEnd/src/pages/AdminPage/AdminProfile/AdminInfo.jsx
index 1ab57c2e..d4e2455c 100644
--- a/FrontEnd/src/pages/AdminPage/AdminProfile/AdminInfo.jsx
+++ b/FrontEnd/src/pages/AdminPage/AdminProfile/AdminInfo.jsx
@@ -12,7 +12,7 @@ const AdminInfo = ({ user, mutate }) => {
handleSubmit,
setValue,
getValues,
- formState: { errors },
+ formState: { errors, isDirty },
} = useForm({
defaultValues: {
'name': user.name,
@@ -129,7 +129,7 @@ const AdminInfo = ({ user, mutate }) => {
{errors.surname && errors.surname.message}
-
+
diff --git a/FrontEnd/src/pages/AdminPage/AdminProfile/ChangeAdminPassword.jsx b/FrontEnd/src/pages/AdminPage/AdminProfile/ChangeAdminPassword.jsx
index 4a7ff2a1..a9b33873 100644
--- a/FrontEnd/src/pages/AdminPage/AdminProfile/ChangeAdminPassword.jsx
+++ b/FrontEnd/src/pages/AdminPage/AdminProfile/ChangeAdminPassword.jsx
@@ -17,7 +17,7 @@ export default function ChangeAdminPassword(props) {
getValues,
watch,
reset,
- formState: { errors },
+ formState: { errors, isDirty },
} = useForm({
mode: 'all',
defaultValues: {
@@ -55,14 +55,13 @@ export default function ChangeAdminPassword(props) {
return (