[FEATURE] 소개탭, 지원하기탭 필수조건 에러처리 및 label 수정 #148
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ 구현 기능 명세
✅ PR Point
소개탭에 required 조건 추가 및 error 처리를 추가해주었어요.
그런데 errors 객체 사용하는 과정에서 제가 register label로 사용하던 방식(이전 PR 참고)이 타입에러를 발생시키더라구요.
빨간줄을 해결하기 위해서는 제가 사용했던 API 스키마와 동일한 구조가 될 수 있도록 FormValue 타입을 따로 선언해줘야 하는 것으로 보였는데,
현재는 그렇게 타입을 고도화할 시간이 없어서 일단 객체 구조였던 register label을 모두 flatten 시켜서 string화 해주었습니다.
제 컨벤션을 적용시켰던 지원하기 탭에서도, 언석오빠가 최초에 작업해주었던 isError 및 errorMessage가 다 정상작동 하고 있지 않더라구요
그래서 label 모두 flatten 시켜주고 errors 처리도 정상화시켜주었습니다.
2024-11-28.1.28.45.mov