Skip to content

Commit

Permalink
if문 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Nov 20, 2023
1 parent 02b2514 commit c6b9889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage/ProjectList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const ProjectList = () => {
axios.get(url)
.then((res) => {setData(res.data); setFetchError("")})
.catch((err) => {
if (data.length == 0) { setFetchError("권한이 없습니다")}
if (getData().length === 0) { setFetchError("권한이 없습니다")}
});
}, [secret]);

Expand Down

0 comments on commit c6b9889

Please sign in to comment.