Skip to content

Commit

Permalink
FIX : docs.title.length로 처리하던 문법 함축
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubinquitous committed Apr 6, 2023
1 parent dc6b5c5 commit f7d66cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/create/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Create = () => {
if (['?', '/', '"', '\\'].includes(docs.title)) return alert('문서명에는 물음표나 쌍따옴표, 슬래시나 역슬래시를 넣을 수 없습니다.')
if (!isLogined) return alert('로그인 후 이용 가능한 서비스입니다.')
if (!docs.enroll) return alert('연도를 선택해주세요!')
if (!docs.title.length) return alert('문서의 이름을 정해주세요!')
if (!docs.title) return alert('문서의 이름을 정해주세요!')
if (!docs.docsType) return alert('문서의 분류를 선택해주세요!')

const { title, enroll, contents, docsType } = docs
Expand Down

0 comments on commit f7d66cb

Please sign in to comment.