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

Commit 21a5dd5

Browse files
authored
Merge pull request #341 from mbaghel/dev
Fixed crash when empty object returned from /sendRoleSearchRequest
2 parents 4cf54b4 + 23e6120 commit 21a5dd5

File tree

2 files changed

+8
-2
lines changed
  • src/routes/CreateNewTeam/components

2 files changed

+8
-2
lines changed

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

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ function NoMatchingProfilesResultCard({ role }) {
2525
We will be looking internally for members matching your requirements
2626
and be back at them in about 2 weeks.
2727
</p>
28-
{role && (
28+
{role.rates && role.name ? (
2929
<div styleName="niche-rate-box">
3030
<p>{role.name} Rate</p>
3131
<p styleName="cost">{formatMoney(role.rates[0].global)}</p>
3232
<p>/Week</p>
3333
</div>
34+
) : (
35+
<div styleName="niche-rate-box">
36+
<p>Custom Rate</p>
37+
<p styleName="cost">$1,200</p>
38+
<p>/Week</p>
39+
</div>
3440
)}
3541
<Link to="/taas/myteams/createnewteam">
3642
<Button type="secondary" styleName="button">

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function SearchContainer({
9090
isDisabled={
9191
isCompletenessDisabled ||
9292
searchState === "searching" ||
93-
(searchState === "done" && !matchingRole)
93+
(searchState === "done" && isCustomRole(matchingRole))
9494
}
9595
onClick={searchState ? onSubmit : search}
9696
extraStyleName={completenessStyle}

0 commit comments

Comments
 (0)