From 94baf5a2143ed1b5abe0bac332ac975c01d1470e Mon Sep 17 00:00:00 2001 From: leejin_rho Date: Wed, 3 Jul 2024 16:45:37 +0900 Subject: [PATCH] =?UTF-8?q?#16=20feat:=20useSignup=20deploy=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/auth.ts | 3 +++ apis/hooks/auth.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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"); },