Skip to content

Commit

Permalink
fix: 회원가입 시 사진을 1개 이상 등록하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeseungyun committed Mar 22, 2024
1 parent 316a161 commit 83084e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page/Auth/Signup/hooks/useOwnerData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default function useCheckOwnerData(isMobile:boolean) {
addFiles(watch('registerFiles'));
},
validate: () => {
if (ownerData.registerFiles && ownerData.registerFiles.length < 1) {
if (!ownerData.registerFiles) {
return '파일을 1개 이상 첨부해주세요';
}
return true;
Expand Down

0 comments on commit 83084e1

Please sign in to comment.