Skip to content

Commit

Permalink
fix: remove handle auth success
Browse files Browse the repository at this point in the history
  • Loading branch information
RobChangCA committed Sep 25, 2024
1 parent 8e038a8 commit 8bb435f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions account-kit/react/src/components/auth/card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { Footer } from "../sections/Footer.js";

export type AuthCardProps = {
className?: string;
handleAuthSuccess?: () => void;
};

/**
Expand Down Expand Up @@ -47,11 +46,9 @@ export const AuthCard = (props: AuthCardProps) => {
// eslint-disable-next-line jsdoc/require-jsdoc
export const AuthCardContent = ({
className,
handleAuthSuccess,
showClose = false,
}: {
className?: string;
handleAuthSuccess?: () => void;
showClose?: boolean;
}) => {
const { closeAuthModal } = useAuthModal();
Expand Down Expand Up @@ -106,7 +103,6 @@ export const AuthCardContent = ({
didGoBack.current = false;

closeAuthModal();
handleAuthSuccess?.();
onAuthSuccess?.();
} else if (authStep.type !== "initial") {
didGoBack.current = false;
Expand All @@ -125,7 +121,6 @@ export const AuthCardContent = ({
isAuthenticating,
setAuthStep,
onAuthSuccess,
handleAuthSuccess,
closeAuthModal,
]);

Expand Down

0 comments on commit 8bb435f

Please sign in to comment.