diff --git a/src/constants/index.js b/src/constants/index.js index 721448e..ab58e3c 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -391,7 +391,7 @@ export const MAX_ALLOWED_INTERVIEWS = 3; /** * Custom role names to remove from RoleList component */ -export const CUSTOM_ROLE_NAMES = ["custom", "niche", "custom role"]; +export const CUSTOM_ROLE_NAMES = ["custom", "niche"]; /** * Minimal Resource Booking duration (weeks) diff --git a/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx b/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx index a323c9e..40a2e91 100644 --- a/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx +++ b/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx @@ -35,16 +35,18 @@ function NoMatchingProfilesResultCard({ role, onSubmit }) { if (role.jobTitle && role.jobTitle.length) { name = role.jobTitle; } - dispatch( - addSearchedRole({ - searchId, - name, - rates: role.rates, - imageUrl: role.imageUrl, - }) - ); - onSubmit() - }, [dispatch, role]); + if (!alreadyAdded) { + dispatch( + addSearchedRole({ + searchId, + name, + rates: role.rates, + imageUrl: role.imageUrl, + }) + ); + } + onSubmit(); + }, [dispatch, role, alreadyAdded]); return (
- We routinely place great people with the skills you’ve asked for. Right now, we don’t have anyone available. However, our database is dynamic and updated often. Please continue below so we can finalize your talent request and alert you when a great candidate becomes available. + We routinely place great people with the skills you’ve asked for. + Right now, we don’t have anyone available. However, our database is + dynamic and updated often. Please continue below so we can finalize + your talent request and alert you when a great candidate becomes + available.
{data.name}
- ${isCustomRole(data) ? '0' : data.numberOfResources * data.rate} + $ + {!data.imageUrl + ? "0" + : data.numberOfResources * data.rate}