This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 2 files changed +7
-3
lines changed
src/routes/CreateNewTeam/components
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function SearchContainer({
54
54
isDisabled = {
55
55
isCompletenessDisabled ||
56
56
searchState === "searching" ||
57
- ( searchState === "done" && isCustomRole ( matchingRole ) )
57
+ ( searchState === "done" && ( ! addedRoles || ! addedRoles . length ) )
58
58
}
59
59
onClick = { searchState ? onSubmit : onClick ? onClick : search }
60
60
extraStyleName = { completenessStyle }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import TeamDetailsModal from "../TeamDetailsModal";
23
23
import ConfirmationModal from "../ConfirmationModal" ;
24
24
import withAuthentication from "../../../../hoc/withAuthentication" ;
25
25
import "./styles.module.scss" ;
26
- import { setCurrentStage } from "utils/helpers" ;
26
+ import { isCustomRole , setCurrentStage } from "utils/helpers" ;
27
27
import { clearSearchedRoles } from "../../actions" ;
28
28
import { postTeamRequest } from "services/teams" ;
29
29
import SuccessCard from "../SuccessCard" ;
@@ -106,7 +106,11 @@ function SubmitContainer({
106
106
107
107
return (
108
108
< div styleName = "page" >
109
- { matchingRole ? < ResultCard role = { matchingRole } /> : < SuccessCard /> }
109
+ { ! isCustomRole ( matchingRole ) ? (
110
+ < ResultCard role = { matchingRole } />
111
+ ) : (
112
+ < SuccessCard />
113
+ ) }
110
114
< div styleName = "right-side" >
111
115
< AddedRolesAccordion addedRoles = { addedRoles } />
112
116
< Completeness
You can’t perform that action at this time.
0 commit comments