Skip to content

Commit

Permalink
fix: sendClientError 로직 추가~
Browse files Browse the repository at this point in the history
  • Loading branch information
hanagertrudeKim committed Apr 17, 2024
1 parent 8cdb65e commit 1d4f8b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/query/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useNavigate } from 'react-router-dom';
import { useErrorMessageStore } from 'store/errorMessageStore';
import useUserTypeStore from 'store/useUserTypeStore';
import useUserStore from 'store/user';
import { isKoinError } from '@bcsdlab/koin';
import { isKoinError, sendClientError } from '@bcsdlab/koin';

interface VerifyInput {
email: string;
Expand Down Expand Up @@ -99,6 +99,8 @@ export const useLogout = () => {
if (isKoinError(err)) {
setLogoutError(err.message || '로그아웃을 실패했습니다.');
setLogoutErrorCode(err.code);
} else {
sendClientError(error);
}
},
});
Expand Down

0 comments on commit 1d4f8b5

Please sign in to comment.