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

Commit 9d1d631

Browse files
authored
Merge pull request #508 from yoution/feature/taas-intake-1.3
fix: issue #504
2 parents ecb048f + a9a5cc7 commit 9d1d631

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
lines changed

src/constants/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ export const MAX_ALLOWED_INTERVIEWS = 3;
391391
/**
392392
* Custom role names to remove from RoleList component
393393
*/
394-
export const CUSTOM_ROLE_NAMES = ["custom", "niche", "custom role"];
394+
export const CUSTOM_ROLE_NAMES = ["custom", "niche"];
395395

396396
/**
397397
* Minimal Resource Booking duration (weeks)

src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx

+18-14
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,18 @@ function NoMatchingProfilesResultCard({ role, onSubmit }) {
3535
if (role.jobTitle && role.jobTitle.length) {
3636
name = role.jobTitle;
3737
}
38-
dispatch(
39-
addSearchedRole({
40-
searchId,
41-
name,
42-
rates: role.rates,
43-
imageUrl: role.imageUrl,
44-
})
45-
);
46-
onSubmit()
47-
}, [dispatch, role]);
38+
if (!alreadyAdded) {
39+
dispatch(
40+
addSearchedRole({
41+
searchId,
42+
name,
43+
rates: role.rates,
44+
imageUrl: role.imageUrl,
45+
})
46+
);
47+
}
48+
onSubmit();
49+
}, [dispatch, role, alreadyAdded]);
4850

4951
return (
5052
<div styleName="result-card">
@@ -54,11 +56,13 @@ function NoMatchingProfilesResultCard({ role, onSubmit }) {
5456
<Curve styleName="curve" />
5557
</div>
5658
<div styleName="content">
57-
<h4 styleName="job-title">
58-
What happens next
59-
</h4>
59+
<h4 styleName="job-title">What happens next</h4>
6060
<p styleName="info-txt">
61-
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.
61+
We routinely place great people with the skills you’ve asked for.
62+
Right now, we don’t have anyone available. However, our database is
63+
dynamic and updated often. Please continue below so we can finalize
64+
your talent request and alert you when a great candidate becomes
65+
available.
6266
</p>
6367
<div styleName="button-group">
6468
<Link to="/taas/createnewteam">

src/routes/CreateNewTeam/pages/CreateTaasPayment/index.jsx

+11-6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { Elements } from "@stripe/react-stripe-js";
55
import { loadStripe } from "@stripe/stripe-js";
66
import { ThemeProvider } from "@material-ui/styles";
77
import { toastr } from "react-redux-toastr";
8-
import { isCustomRole } from "utils/helpers";
98

109
import PaymentForm from "./PaymentForm";
1110
import PageHeader from "components/PageHeader";
@@ -60,7 +59,8 @@ const CreateTassPayment = () => {
6059
durationWeeks,
6160
availability,
6261
});
63-
if (!isCustomRole(role)) {
62+
// not custome role
63+
if (role.imageUrl) {
6464
amount.push({ rate, numberOfResources });
6565
}
6666
});
@@ -113,15 +113,20 @@ const CreateTassPayment = () => {
113113
<div>
114114
<p styleName="title">{data.name}</p>
115115
<ul styleName="details">
116-
{!isCustomRole(data) && <li>
117-
{data.numberOfResources} x ${data.rate}/ Week
118-
</li>}
116+
{data.imageUrl && (
117+
<li>
118+
{data.numberOfResources} x ${data.rate}/ Week
119+
</li>
120+
)}
119121
<li>{data.durationWeeks} Week Duration</li>
120122
<li>{data.availability}</li>
121123
</ul>
122124
</div>
123125
<p styleName="amount">
124-
${isCustomRole(data) ? '0' : data.numberOfResources * data.rate}
126+
$
127+
{!data.imageUrl
128+
? "0"
129+
: data.numberOfResources * data.rate}
125130
</p>
126131
</div>
127132
<hr styleName="divider" />

0 commit comments

Comments
 (0)