frontend: fix params dispatched to api client's create user
Parents:
4808ab91 file(s) changed
- frontend/app/auth/signup.tsx +6 -7
frontend/app/auth/signup.tsx
@@ -66,16 +66,15 @@ if (!validateForm()) return;
66 66
67 67 try {
68 68 await signup({
69 - user: {
70 - firstName,
71 - lastName,
72 - email,
73 - password
74 - }
69 + firstName,
70 + lastName,
71 + email,
72 + password
75 73 });
74 +
76 75 router.replace('/');
77 76 } catch (error: any) {
78 - Alert.alert('Erro:', error.message || 'Falha no cadastro. Tente novamente.');
77 + Alert.alert('Erro:', error.message || 'Falha no cadastro. Tente novamente.');
79 78 }
80 79 };
81 80