Skip to content

Commit 766bffa

Browse files
committed
fix(useGoogleLogin): handle undefined loginResult gracefully
1 parent 351faad commit 766bffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/web/src/auth/google/hooks/useGoogleLogin/useGoogleLogin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export const useGoogleLogin = ({
7474
},
7575
});
7676

77-
void loginResult
77+
void (loginResult ?? Promise.resolve())
7878
.then(() => {
7979
setData({ code, scope, state });
8080
})

0 commit comments

Comments
 (0)