Skip to content

Commit

Permalink
api 에러시 보여주는 문구 변경 (#521)
Browse files Browse the repository at this point in the history
feat: 기본 에러 메시지 설정
  • Loading branch information
guridaek authored Sep 19, 2023
1 parent 6092dad commit 761c069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/hooks/useFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export const useFetch = () => {

return response;
})
.catch((error) => {
.catch(() => {
showErrorToast({
title: ERROR_TITLE.NETWORK,
description: error instanceof Error ? error.message : ERROR_DESCRIPTION.UNEXPECTED,
title: ERROR_TITLE.ERROR,
description: ERROR_DESCRIPTION.UNEXPECTED,
});
});

Expand Down

0 comments on commit 761c069

Please sign in to comment.