Skip to content

Commit

Permalink
fix: 서버일때만 에러 던지도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hamo-o committed Sep 4, 2024
1 parent 69307d0 commit 2475b10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/utils/src/fetcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ class Fetcher {
error.message = data.errorMessage;
error.name = data.errorCodeName;

if (isClient) toast.error(error.message);
throw error;
if (isClient) {
toast.error(error.message);
} else throw error;
}
}

Expand Down

0 comments on commit 2475b10

Please sign in to comment.