Skip to content

Commit

Permalink
Bug Fix: OAuth Button Loader State Not Reset on Browser Back Navigation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Srayash committed Oct 28, 2024
1 parent ca805ac commit c351091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/dashboard/app/auth/sign-in/oauth-signin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const OAuthSignIn: React.FC = () => {
redirectUrl: "/auth/sso-callback",
redirectUrlComplete: "/apis",
});
setIsLoading(null);
setLastUsed(provider === "oauth_google" ? "google" : "github");
} catch (err) {
console.error(err);
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/app/auth/sign-up/oauth-signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function OAuthSignUp() {
redirectUrl: "/auth/sso-callback",
redirectUrlComplete: "/new",
});
setIsLoading(null);
} catch (cause) {
console.error(cause);
setIsLoading(null);
Expand Down

0 comments on commit c351091

Please sign in to comment.