From 1edd3e4e49e8d2c0fd2c1b4c732a5d39186aa6d7 Mon Sep 17 00:00:00 2001 From: Michael Baghel Date: Mon, 21 Jun 2021 14:12:13 +0400 Subject: [PATCH 1/2] Fixed crash when empty object returned from /sendRoleSearchRequest --- .../components/NoMatchingProfilesResultCard/index.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx b/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx index e612d1e1..170b9756 100644 --- a/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx +++ b/src/routes/CreateNewTeam/components/NoMatchingProfilesResultCard/index.jsx @@ -25,12 +25,18 @@ function NoMatchingProfilesResultCard({ role }) { We will be looking internally for members matching your requirements and be back at them in about 2 weeks.

- {role && ( + {role.rates && role.name ? (

{role.name} Rate

{formatMoney(role.rates[0].global)}

/Week

+ ) : ( +
+

Custom Rate

+

$1,200

+

/Week

+
)}