Skip to content

Commit 2f47fa6

Browse files
committed
onboarding location recruiter fixed
1 parent 8376e18 commit 2f47fa6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pages/Onboarding/RecruiterComponent.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const RecruiterComponent = ({ data, onDataChange, onValidChange }) => {
1818
case "website":
1919
return value.trim() === "" ? "Website is required" : "";
2020
case "companyName":
21-
case "companyLocation":
21+
case "location":
2222
case "sector":
2323
return value.trim() === "" ? "This field is required" : "";
2424
case "contactPhone":
@@ -32,7 +32,7 @@ export const RecruiterComponent = ({ data, onDataChange, onValidChange }) => {
3232
const newErrors = {};
3333
const fields = [
3434
"companyName",
35-
"companyLocation",
35+
"location",
3636
"contactEmail",
3737
"contactPhone",
3838
"sector",
@@ -96,18 +96,18 @@ export const RecruiterComponent = ({ data, onDataChange, onValidChange }) => {
9696
)}
9797
</div>
9898
<div className="flex flex-col flex-1 mt-4 md:mt-0">
99-
<label htmlFor="companyLocation" className={labelClasses}>
99+
<label htmlFor="location" className={labelClasses}>
100100
Location
101101
</label>
102102
<input
103-
id="companyLocation"
103+
id="location"
104104
placeholder="City, Country"
105105
className={inputClasses}
106-
value={get("companyLocation")}
106+
value={get("location")}
107107
onChange={handleChange}
108108
/>
109-
{touched.companyLocation && errors.companyLocation && (
110-
<p className={errorClasses}>{errors.companyLocation}</p>
109+
{touched.location && errors.location && (
110+
<p className={errorClasses}>{errors.location}</p>
111111
)}
112112
</div>
113113
</div>

0 commit comments

Comments
 (0)