Skip to content

Commit ca444a5

Browse files
committed
update the condition
1 parent 867bfba commit ca444a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/features/dashboard/templates/table-cells.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,9 @@ export function EnvdVersionCell({
296296
const versionValue =
297297
valueString && valueString !== INVALID_ENVD_VERSION ? valueString : null
298298

299-
const isNotV2Compatible =
300-
isVersionCompatible(
301-
versionValue ?? SDK_V2_MINIMAL_ENVD_VERSION,
302-
SDK_V2_MINIMAL_ENVD_VERSION
303-
) === false
299+
const isNotV2Compatible = versionValue
300+
? isVersionCompatible(versionValue, SDK_V2_MINIMAL_ENVD_VERSION) === false
301+
: false
304302
return (
305303
<div
306304
className={cn(

0 commit comments

Comments
 (0)