1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00

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.
This commit is contained in:
Fredrik Strand Oseberg 2024-09-11 18:12:37 +02:00 committed by GitHub
parent 9c435a9ec6
commit 0f8316a6de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ? (
<ThemeMode