This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/routes/CreateNewTeam/components Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import TeamDetailsModal from "../TeamDetailsModal";
2323import ConfirmationModal from "../ConfirmationModal" ;
2424import withAuthentication from "../../../../hoc/withAuthentication" ;
2525import "./styles.module.scss" ;
26- import { setCurrentStage } from "utils/helpers" ;
26+ import { isCustomRole , setCurrentStage } from "utils/helpers" ;
2727import { clearSearchedRoles } from "../../actions" ;
2828import { postTeamRequest } from "services/teams" ;
2929import 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
You can’t perform that action at this time.
0 commit comments