Skip to content

Commit

Permalink
Fix: 일자별 통계 날짜 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Jan 27, 2024
1 parent 843fe0b commit 47a6902
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/main/useMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useMain = () => {
if (data === undefined) return undefined;
if (data === '') {
for (let index = 0; index < week; index++) {
const date = getChartDate(index);
const date = getChartDate(week - index);
revenueData.push({
year: date,
value: 0,
Expand Down
6 changes: 5 additions & 1 deletion src/pages/sign-in/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ export const SignIn = () => {
}
},
onError(error) {
if (error.response?.data.code === RESPONSE_CODE.REQUEST_BODY_ERROR) {
if (
error.response?.data.code === RESPONSE_CODE.REQUEST_BODY_ERROR ||
error.response?.data.code === RESPONSE_CODE.INCORRECT_EMAIL ||
error.response?.data.code === RESPONSE_CODE.INCORRECT_PASSWORD
) {
message.error({
content: (
<TextBox typography="body3" fontWeight={'400'}>
Expand Down

0 comments on commit 47a6902

Please sign in to comment.