fix: correct Google login handler function name
Rename handleGoogleLoginSuccess to handleGoogleLogin and update the onClick handler to use the correct function name. This fixes the client-side exception on the login page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c0839dd081
commit
6f236ed1ce
|
|
@ -51,7 +51,7 @@ export default function LoginPage() {
|
|||
}
|
||||
};
|
||||
|
||||
const handleGoogleLoginSuccess = useGoogleLogin({
|
||||
const handleGoogleLogin = useGoogleLogin({
|
||||
onSuccess: async (tokenResponse) => {
|
||||
setIsGoogleLoading(true);
|
||||
console.log('🔑 Token Google reçu:', tokenResponse);
|
||||
|
|
@ -158,7 +158,7 @@ export default function LoginPage() {
|
|||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
onClick={() => handleGoogleLoginSuccess()}
|
||||
onClick={() => handleGoogleLogin()}
|
||||
disabled={isGoogleLoading}
|
||||
isLoading={isGoogleLoading}
|
||||
fullWidth
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user