Skip to content

Commit

Permalink
#16 feat: useSignup deploy 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
leejin-rho committed Jul 3, 2024
1 parent a53b338 commit 94baf5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apis/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ export type centerProps = {

export interface getCenterListBody {
ceterList: centerProps[];
isSuccess: boolean;
code: number;
message: string;
}

export const getCenterList = async (): Promise<getCenterListBody> => {
Expand Down
2 changes: 1 addition & 1 deletion apis/hooks/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function useSignUp(userData: userProps) {
onSuccess: () => {
router.push("/login");
},
onError: () => {
onError: (error: Error) => {
window.alert("다시 회원가입해주세요.");
router.push("/main");
},
Expand Down

0 comments on commit 94baf5a

Please sign in to comment.