From 0f8316a6de40485af7fd77e216ed716afaaec2a4 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Wed, 11 Sep 2024 18:12:37 +0200 Subject: [PATCH] fix: invert logic (#8135) The EEA flag is present in enterprise instances which currently is blocking enterprise customers from accessing this button. This PR inverts the logic that was changed in #7796. --- .../CreateEnvironmentButton/CreateEnvironmentButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/environments/CreateEnvironmentButton/CreateEnvironmentButton.tsx b/frontend/src/component/environments/CreateEnvironmentButton/CreateEnvironmentButton.tsx index d4abf16d1119..aaf692523a34 100644 --- a/frontend/src/component/environments/CreateEnvironmentButton/CreateEnvironmentButton.tsx +++ b/frontend/src/component/environments/CreateEnvironmentButton/CreateEnvironmentButton.tsx @@ -10,7 +10,7 @@ import { useUiFlag } from 'hooks/useUiFlag'; export const CreateEnvironmentButton = () => { const navigate = useNavigate(); - const disabled = useUiFlag('EEA'); + const disabled = !useUiFlag('EEA'); const endIcon = disabled ? (