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 (
@@ -54,11 +56,13 @@ function NoMatchingProfilesResultCard({ role, onSubmit }) {
-

- What happens next -

+

What happens next

- 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.

diff --git a/src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx b/src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx index b3c1c63..8ea90cc 100644 --- a/src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx +++ b/src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx @@ -5,7 +5,6 @@ import { Elements } from "@stripe/react-stripe-js"; import { loadStripe } from "@stripe/stripe-js"; import { ThemeProvider } from "@material-ui/styles"; import { toastr } from "react-redux-toastr"; -import { isCustomRole } from "utils/helpers"; import PaymentForm from "./PaymentForm"; import PageHeader from "components/PageHeader"; @@ -59,7 +58,8 @@ const CreateTassPayment = () => { durationWeeks, availability, }); - if (!isCustomRole(role)) { + // not custome role + if (role.imageUrl) { amount.push({ rate, numberOfResources }); } }); @@ -112,15 +112,20 @@ const CreateTassPayment = () => {

{data.name}

    - {!isCustomRole(data) &&
  • - {data.numberOfResources} x ${data.rate}/ Week -
  • } + {data.imageUrl && ( +
  • + {data.numberOfResources} x ${data.rate}/ Week +
  • + )}
  • {data.durationWeeks} Week Duration
  • {data.availability}

- ${isCustomRole(data) ? '0' : data.numberOfResources * data.rate} + $ + {!data.imageUrl + ? "0" + : data.numberOfResources * data.rate}