Skip to content

Commit

Permalink
feat: 에러메세지 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
chlwlstlf committed Aug 13, 2024
1 parent b2d4188 commit ac31f2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/apis/ranking.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import MESSAGES from "@/constants/message";
export const getRankingList = async (): Promise<RankingAllData> => {
const res = await apiClient.get({
endpoint: `${API_ENDPOINTS.RANKING}`,
// errorMessage: MESSAGES.ERROR.GET_OPENED_ROOM_LIST,
errorMessage: MESSAGES.ERROR.GET_RANKING,
});

return res.responses;
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/constants/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ const ERROR_MESSAGES = {
//피드백 모아보기
GET_RECEIVED_FEEDBACK: "받은 피드백 불러오는 도중 에러가 발생하였습니다.",
GET_DELIVERED_FEEDBACK: "받은 피드백 불러오는 도중 에러가 발생하였습니다.",

// ranking
GET_RANKING: "랭킹을 불러오는 도중 에러가 발생하였습니다.",
};

const MESSAGES = {
Expand Down

0 comments on commit ac31f2e

Please sign in to comment.