Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
fix setLoaded for isSignedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyjgrove committed May 12, 2020
1 parent 477fb40 commit 18dc277
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/use-google-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const useGoogleLogin = ({
}
)
} else if (isSignedIn && window.gapi.auth2.isSignedIn.get()) {
setLoaded(true)
onAutoLoadFinished(true)
handleSigninSuccess(window.gapi.auth2.currentUser.get())
} else if (!unmounted) {
Expand Down

0 comments on commit 18dc277

Please sign in to comment.