Skip to content

Commit 7e79109

Browse files
committed
Fix #5199
1 parent 4a16124 commit 7e79109

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shared/containers/Gigs/RecruitCRMJobApply.jsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ class RecruitCRMJobApplyContainer extends React.Component {
125125
}
126126
// require atleast 1 skill
127127
if (!prop || prop === 'skills') {
128-
if (!_.find(formData.skills, { selected: true })) formErrors.skills = 'Please, add technical skills';
128+
const skills = _.filter(formData.skills, ['selected', true]);
129+
if (!skills.length) formErrors.skills = 'Please, add technical skills';
130+
else if (skills.map(skill => skill.label).join(',').length >= 100) formErrors.skills = 'Sum of all skill characters may not be greater than 100';
129131
else delete formErrors.skills;
130132
}
131133
// have accepted terms

0 commit comments

Comments
 (0)