From ea036dff87f65478d083246bdcda927577c65b2b Mon Sep 17 00:00:00 2001 From: Leon Serfaty G Date: Thu, 17 Jul 2025 11:45:08 +0000 Subject: [PATCH] ill never use firebase auth if thats your intention --- src/app/admin/settings/user/page.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/admin/settings/user/page.tsx b/src/app/admin/settings/user/page.tsx index 1a423dc..ff34ea8 100644 --- a/src/app/admin/settings/user/page.tsx +++ b/src/app/admin/settings/user/page.tsx @@ -51,14 +51,20 @@ export default function UserProfilePage() { }); useEffect(() => { - async function fetchUser() { + const fetchUser = async () => { const user = await getUser(); if (user) { - reset({ name: user.name, email: user.email, password: "", confirmPassword: "" }); + reset({ + name: user.name, + email: user.email, + password: "", + confirmPassword: "" + }); } - } + }; fetchUser(); - }, [reset]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); const onSubmit: SubmitHandler = (data) => { startSavingTransition(async () => {