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

Commit bc4e276

Browse files
committed
Allow Submit Request on No Matching Profile page if positions already added
1 parent 94e697f commit bc4e276

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function SearchContainer({
5454
isDisabled={
5555
isCompletenessDisabled ||
5656
searchState === "searching" ||
57-
(searchState === "done" && isCustomRole(matchingRole))
57+
(searchState === "done" && (!addedRoles || !addedRoles.length))
5858
}
5959
onClick={searchState ? onSubmit : onClick ? onClick : search}
6060
extraStyleName={completenessStyle}

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

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import TeamDetailsModal from "../TeamDetailsModal";
2323
import ConfirmationModal from "../ConfirmationModal";
2424
import withAuthentication from "../../../../hoc/withAuthentication";
2525
import "./styles.module.scss";
26-
import { setCurrentStage } from "utils/helpers";
26+
import { isCustomRole, setCurrentStage } from "utils/helpers";
2727
import { clearSearchedRoles } from "../../actions";
2828
import { postTeamRequest } from "services/teams";
2929
import SuccessCard from "../SuccessCard";
@@ -106,7 +106,11 @@ function SubmitContainer({
106106

107107
return (
108108
<div styleName="page">
109-
{matchingRole ? <ResultCard role={matchingRole} /> : <SuccessCard />}
109+
{!isCustomRole(matchingRole) ? (
110+
<ResultCard role={matchingRole} />
111+
) : (
112+
<SuccessCard />
113+
)}
110114
<div styleName="right-side">
111115
<AddedRolesAccordion addedRoles={addedRoles} />
112116
<Completeness

0 commit comments

Comments
 (0)