Skip to content

Commit

Permalink
revert behaviour on CORE because it's confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
taraepp committed Oct 25, 2024
1 parent 1bebd18 commit 409a850
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions services/core-web/src/components/mine/Projects/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ const Project: FC = () => {
const [isValid, setIsValid] = useState(true);
const [activeTab, setActiveTab] = useState("overview");

const { information_requirements_table, major_mine_application, project_summary } = project;
const { information_requirements_table, major_mine_application } = project;

const isProjectSummarySubmitted = Boolean(project_summary?.submission_date);
const hasInformationRequirementsTable = Boolean(information_requirements_table?.irt_guid);
const hasFinalAplication = Boolean(major_mine_application?.major_mine_application_guid);

Expand Down Expand Up @@ -132,7 +131,7 @@ const Project: FC = () => {
{
key: "information-requirements-table",
label: "IRT",
disabled: !hasInformationRequirementsTable && !isProjectSummarySubmitted,
disabled: !hasInformationRequirementsTable,
children: (
<div className="padding-lg">
<InformationRequirementsTableTab />
Expand All @@ -142,7 +141,7 @@ const Project: FC = () => {
{
key: "final-app",
label: "Final Application",
disabled: !hasFinalAplication && !isProjectSummarySubmitted,
disabled: !hasFinalAplication,
children: (
<div className="padding-lg">
<MajorMineApplicationTab />
Expand Down

0 comments on commit 409a850

Please sign in to comment.