CreateImageWizard: proprely gate WSL images

`isBeta` is a function, so the check would also return true in stable.
This commit is contained in:
Sanne Raymaekers 2023-12-04 15:02:14 +01:00
parent e011c4ba0b
commit cea1caf175

View file

@ -361,7 +361,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
data-testid="checkbox-image-installer"
/>
)}
{allowedTargets.includes('wsl') && isBeta && (
{allowedTargets.includes('wsl') && isBeta() && (
<Checkbox
label="WSL - Windows Subsystem for Linux (.tar.gz)"
isChecked={environment['wsl']}