From 576756f60a16bff6af9b5d373ba446e4f0c6665a Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Wed, 11 Sep 2024 18:26:08 +0200 Subject: [PATCH] fix: invert logic (#8135) (#8136) Cherry pick the fix from #8135 --- .../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 ? (