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

Allow Submit Request on No Matching Profile page if positions already… #347

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function SearchContainer({
isDisabled={
isCompletenessDisabled ||
searchState === "searching" ||
(searchState === "done" && isCustomRole(matchingRole))
(searchState === "done" && (!addedRoles || !addedRoles.length))
}
onClick={searchState ? onSubmit : onClick ? onClick : search}
extraStyleName={completenessStyle}
Expand Down
8 changes: 6 additions & 2 deletions src/routes/CreateNewTeam/components/SubmitContainer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import TeamDetailsModal from "../TeamDetailsModal";
import ConfirmationModal from "../ConfirmationModal";
import withAuthentication from "../../../../hoc/withAuthentication";
import "./styles.module.scss";
import { setCurrentStage } from "utils/helpers";
import { isCustomRole, setCurrentStage } from "utils/helpers";
import { clearSearchedRoles } from "../../actions";
import { postTeamRequest } from "services/teams";
import SuccessCard from "../SuccessCard";
Expand Down Expand Up @@ -106,7 +106,11 @@ function SubmitContainer({

return (
<div styleName="page">
{matchingRole ? <ResultCard role={matchingRole} /> : <SuccessCard />}
{!isCustomRole(matchingRole) ? (
<ResultCard role={matchingRole} />
) : (
<SuccessCard />
)}
<div styleName="right-side">
<AddedRolesAccordion addedRoles={addedRoles} />
<Completeness
Expand Down