diff --git a/apis/auth.ts b/apis/auth.ts index 3f21cd8..7d4cd64 100644 --- a/apis/auth.ts +++ b/apis/auth.ts @@ -66,6 +66,9 @@ export type centerProps = { export interface getCenterListBody { ceterList: centerProps[]; + isSuccess: boolean; + code: number; + message: string; } export const getCenterList = async (): Promise => { diff --git a/apis/hooks/auth.ts b/apis/hooks/auth.ts index 8256cac..13a703f 100644 --- a/apis/hooks/auth.ts +++ b/apis/hooks/auth.ts @@ -26,7 +26,7 @@ function useSignUp(userData: userProps) { onSuccess: () => { router.push("/login"); }, - onError: () => { + onError: (error: Error) => { window.alert("다시 회원가입해주세요."); router.push("/main"); },