diff --git a/frontend/src/component/feature/FeatureView/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx b/frontend/src/component/feature/FeatureView/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx
index 54920f4db0..1fe31df175 100644
--- a/frontend/src/component/feature/FeatureView/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx
+++ b/frontend/src/component/feature/FeatureView/FeatureSettings/FeatureSettingsProject/FeatureSettingsProjectConfirm/FeatureSettingsProjectConfirm.tsx
@@ -8,6 +8,7 @@ import { Alert, List, ListItem, styled } from '@mui/material';
import { Link } from 'react-router-dom';
import { IChangeRequest } from 'component/changeRequest/changeRequest.types';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
+import { useChangeRequestsEnabled } from 'hooks/useChangeRequestsEnabled';
const StyledContainer = styled('div')(({ theme }) => ({
display: 'grid',
@@ -42,6 +43,10 @@ const FeatureSettingsProjectConfirm = ({
const currentProjectId = useRequiredPathParam('projectId');
const { project } = useProject(projectId);
+ const { isChangeRequestConfiguredInAnyEnv } =
+ useChangeRequestsEnabled(projectId);
+ const targetProjectHasChangeRequestsEnabled =
+ isChangeRequestConfiguredInAnyEnv();
const hasSameEnvironments: boolean = useMemo(() => {
return arraysHaveSameItems(
feature.environments.map(env => env.name),
@@ -55,7 +60,11 @@ const FeatureSettingsProjectConfirm = ({
return (
- In order to move a feature toggle between two
- projects, both projects must have the exact same
- environments enabled.
-
- In addition the feature toggle must not - have any pending change requests. This - feature toggle is currently referenced - in the following change requests: + The feature toggle must not have any + pending change requests. This feature + toggle is currently referenced in the + following change requests: