Skip to content

Commit

Permalink
chore(EngineProfile): code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
marstamm committed Jul 2, 2024
1 parent 39c83af commit 5d00a71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/tabs/EngineProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function EditableVersionSection(props) {
const currentMinorVersion = toSemverMinor(engineProfile.executionPlatformVersion);
const minorVersions = engineProfileVersions.map(toSemverMinor);

const isKnowVersion = isKnownVersion(engineProfileVersions, engineProfile.executionPlatformVersion);
const versionRecognized = isKnownVersion(engineProfileVersions, engineProfile.executionPlatformVersion);

return (
<Section>
Expand All @@ -176,7 +176,7 @@ function EditableVersionSection(props) {
id={ name }
name={ name }>
{
isKnowVersion
versionRecognized
? null
: <option value={ currentMinorVersion || '' }>{ currentMinorVersion ? `${currentMinorVersion} (unsupported)` : '<unset>' }</option>
}
Expand All @@ -192,7 +192,7 @@ function EditableVersionSection(props) {
</select>
</div>

{(isKnowVersion || !currentMinorVersion) ?
{(versionRecognized || !currentMinorVersion) ?
<PlatformHint className="form-group form-description" executionPlatform={ executionPlatform } displayLabel={ engineLabel } /> :
<UnknownVerisonHint className="form-group form-description" executionPlatform={ executionPlatform } executionPlatformVersion={ engineProfile.executionPlatformVersion } displayLabel={ engineLabel } />
}
Expand Down

0 comments on commit 5d00a71

Please sign in to comment.