Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuna committed Aug 8, 2024
2 parents 4763c66 + f262234 commit 4173fed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/bug/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const BugImg = () => {
const result = await instance.post(`/bug/upload`, formData);
return result.data;
} catch (error) {
handleError(error);
alert("이미지 용량이 너무 큽니다");
throw new Error("파일 업로드 중에 오류가 발생했습니다.");
}
},
Expand Down
1 change: 1 addition & 0 deletions src/app/BugReport/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const BugReport = () => {
...prevData,
file_name: data,
}));
alert("이미지가 추가되었습니다");
},
}
);
Expand Down
3 changes: 2 additions & 1 deletion src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ const Login = () => {
router.push("/login");
}
};

useEffect(() => {
cookie.remove("access_token");
cookie.remove("refresh_token");
localStorage.clear();
}, []);

const BtnColor = () => {
Expand Down

0 comments on commit 4173fed

Please sign in to comment.