frontend: switch auth ctx personal user info to camel case
Parents:
e9742fe2 file(s) changed
- frontend/app/auth/signup.tsx +2 -2
- frontend/context/AuthContext.tsx +4 -4
frontend/app/auth/signup.tsx
@@ -66,8 +66,8 @@ if (!validateForm()) return;
66 66
67 67 try {
68 68 await signup({
69 - first_name: firstName,
70 - last_name: lastName || undefined,
69 + firstName,
70 + lastName,
71 71 email,
72 72 password,
73 73 });
frontend/context/AuthContext.tsx
@@ -11,8 +11,8 @@ isLoading: boolean;
11 11 isAuthenticated: boolean;
12 12 login: (email: string, password: string) => Promise<void>;
13 13 signup: (userData: {
14 - first_name: string;
15 - last_name?: string;
14 + firstName: string;
15 + lastName?: string;
16 16 email: string;
17 17 password: string;
18 18 }) => Promise<void>;
@@ -81,8 +81,8 @@ }
81 81 };
82 82
83 83 const signup = async (userData: {
84 - first_name: string;
85 - last_name?: string;
84 + firstName: string;
85 + lastName?: string;
86 86 email: string;
87 87 password: string;
88 88 }) => {