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

Commit 1edd3e4

Browse files
committed
Fixed crash when empty object returned from /sendRoleSearchRequest
1 parent 4cf54b4 commit 1edd3e4

File tree

1 file changed

+7
-1
lines changed
  • src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
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">

0 commit comments

Comments
 (0)