Skip to content

Commit

Permalink
fix: 401 에러일시 조건부 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
healim01 committed Oct 22, 2024
1 parent 20dba39 commit ebe1142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/apis/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const handleError = async (response: Response, requestProps: RequestProps) => {
const responseString = await response.clone().text();
const errorCode = JSON.parse(responseString).bangggoodCode;

if (response.status === 401 && errorCode === API_ERROR_MESSAGE.AUTH_ACCESS_TOKEN_EMPTY) {
if (response.status === 401 && errorCode === 'AUTH_ACCESS_TOKEN_EMPTY') {
return handleUnauthorizedError(response, requestProps, errorCode);
}

Expand Down

0 comments on commit ebe1142

Please sign in to comment.