Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix: Show job title in No Results page #484

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/routes/CreateNewTeam/components/ResultCard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ function ResultCard({
<Curve styleName="curve" />
<IconEarthCheck styleName="transparent-icon" />
</div>
<h4 styleName="job-title">
{jobTitle && jobTitle.length ? jobTitle : name}
</h4>
<h4 styleName="job-title">{name}</h4>
<div styleName="button-group">
<Button
type={!showRates ? "segment-selected" : "segment"}
Expand Down
5 changes: 4 additions & 1 deletion src/routes/CreateNewTeam/pages/InputJobDescription/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ function InputJobDescription() {
}, []);

const searchObject = useMemo(() => {
if (jobTitle && jobTitle.length) {
return { jobTitle, skills: selectedSkills };
}
return { skills: selectedSkills };
}, [selectedSkills]);
}, [jobTitle, selectedSkills]);

const onClick = useCallback(() => {
setLoadingSkills(true);
Expand Down