Skip to content

Commit ee77736

Browse files
committed
Fix linting issues
1 parent 5cc9c1f commit ee77736

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/src/app/(auth)/profile/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { useAuth } from "@/components/auth/AuthContext";
44
import { Button } from "@/components/ui/button";
5-
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
5+
import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from "@/components/ui/form";
66
import { Input } from "@/components/ui/input";
77
import { useForm } from "react-hook-form";
88
import { setGetProfile } from "@/api/user";
@@ -45,7 +45,7 @@ const ProfilePage = () => {
4545
console.error("Profile Fetch Failed:", error);
4646
// or swal
4747
});
48-
}, [token]);
48+
}, [token, form]);
4949

5050
const onSubmit = (data: z.infer<typeof formSchema>) => {
5151
setGetProfile(token, data).then((data) => {

frontend/src/components/auth/AuthContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Cookies from "js-cookie";
44

55
interface AuthContextType {
66
token: string;
7-
login: (response: any) => void;
7+
login: (response: { access_token: string }) => void;
88
logout: () => void;
99
}
1010

0 commit comments

Comments
 (0)