Skip to content

Commit 377406f

Browse files
committed
trim before API call
1 parent 1811edf commit 377406f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/shared/actions/recruitCRM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function normalizeRecruitPayload(job, payload) {
6969
contact_number: payload.phone,
7070
city: payload.city,
7171
locality: _.find(payload.country, { selected: true }).label,
72-
salary_expectation: payload.payExpectation,
72+
salary_expectation: _.trim(payload.payExpectation),
7373
skill: payload.skills.filter(s => s.selected).map(s => s.label).join(','),
7474
custom_fields: [
7575
{

src/shared/containers/Gigs/RecruitCRMJobApply.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class RecruitCRMJobApplyContainer extends React.Component {
115115
...state,
116116
formData: {
117117
...state.formData,
118-
[key]: _.trim(value),
118+
[key]: value,
119119
},
120120
}));
121121
this.validateForm(key);

0 commit comments

Comments
 (0)