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.
#️⃣ Related Issue
Closes #345
✅ Done Task
💎 PR Point
프로필 이미지를 선택하지 않아도 가입이 진행될 수 있도록 로직을 수정해주었습니다!
SEONYAK_CLIENT/src/pages/onboarding/components/commonOnboarding/Step개인정보입력.tsx
Lines 59 to 71 in ae9700f
기존에는 이미지를 첨부하지 않았을 경우 (imageFile state가 비어있을 경우) 이벤트 핸들러에서 early return을 시켜버려서 다음단계로의 이동을 막았었는데요!
다음과 같이 바꿨습니다.
imageUploadMutate
(presignedURL을 통해 프로필이미지를 S3로 업로드하는 함수) : 이미지를 첨부했을 때만 실행image
: 이미지 파일이 있는 경우는 s3에 업로드된 파일명, 없는 경우는 빈 문자열을 담아서 보냅니다📸 Screenshot
i.e.e.e.2024-11-11.i.i.6.45.07.mov