Skip to content

Commit 89512ed

Browse files
committed
Signup fix
1 parent d728647 commit 89512ed

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

apps/frontend/src/containers/auth/LoginPage.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState } from 'react';
2-
import { useNavigate, useLocation, replace } from 'react-router-dom';
2+
import { useNavigate, useLocation } from 'react-router-dom';
33
import { useAuth } from '../../components/AuthProvider';
44
import { Button } from '../../components/ui/button';
55
import { Card, CardContent } from '../../components/ui/card';
@@ -99,8 +99,7 @@ export const LoginPage: React.FC = () => {
9999
await login({ email, password });
100100
navigate(from, { replace: true });
101101
} else if (authPage === AuthPage.Signup) {
102-
// TODO: signup should take in just email, password, and username
103-
// await signup({ email, password, firstName, lastName });
102+
await signup({ email, password, firstName: username, lastName: '' });
104103
navigate('/confirm-registered', { replace: true });
105104
setError('Account created successfully! Please sign in.');
106105
} else if (authPage === AuthPage.ForgotPassword) {

0 commit comments

Comments
 (0)