Skip to content

Commit

Permalink
updated projectFormTabs usage
Browse files Browse the repository at this point in the history
  • Loading branch information
matbusby-fw committed Sep 24, 2024
1 parent fc49066 commit bc5298a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
AMS_STATUS_CODES_SUCCESS,
AMS_STATUS_CODE_FAIL,
AMS_ENVIRONMENTAL_MANAGEMENT_ACT_TYPES,
isFieldDisabled,
} from "@mds/common";
import { getMineById } from "@mds/common/redux/reducers/mineReducer";
import withFeatureFlag from "@mds/common/providers/featureFlags/withFeatureFlag";
Expand Down Expand Up @@ -60,7 +59,11 @@ export const ProjectSummary: FC = () => {

const { isFeatureEnabled } = useFeatureFlag();
const amsFeatureEnabled = isFeatureEnabled(Feature.AMS_AGENT);
const projectFormTabs = getProjectFormTabs(amsFeatureEnabled, true);
const projectFormTabs = getProjectFormTabs(
amsFeatureEnabled,
true,
isFeatureEnabled(Feature.MAJOR_PROJECT_REFACTOR)
);

const isExistingProject = Boolean(projectGuid && projectSummaryGuid);
const isDefaultLoaded = isExistingProject
Expand Down

0 comments on commit bc5298a

Please sign in to comment.