Skip to content

Commit

Permalink
chore : 빌드 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
imeureka committed Oct 14, 2024
1 parent 6556116 commit 6340af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/queyrClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const queryClient = new QueryClient({
},
}),
mutationCache: new MutationCache({
onError: (error, _variables, _context, mutation) => {
onError: (error, _variables, _context) => {
console.log('🔯 Mutation onError');
console.log(error);

Expand All @@ -28,7 +28,7 @@ function isAxiosError(error: any): error is AxiosError {

function handleAxiosError(error: any) {
if (isAxiosError(error) && error.response) {
const errorCode = (error.response.data as ResponseType<string>);
const errorCode = error.response.data as ResponseType<string>;
const errorMessage = (error.response.data as ResponseType<string>).message;

if (errorCode) {
Expand Down

0 comments on commit 6340af6

Please sign in to comment.