Skip to content

Commit 25e5b22

Browse files
PR changes
changing condition
1 parent a7f87ec commit 25e5b22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export function ControlPlaneCard({
6969
'AuthorizationHealthy',
7070
].every((type) =>
7171
conditions.some(
72-
(condition) => condition.type === type && condition.status === true,
72+
(condition) =>
73+
condition.type === type &&
74+
String(condition.status).toLowerCase() === 'true',
7375
),
7476
);
7577
};
@@ -123,7 +125,7 @@ export function ControlPlaneCard({
123125
resourceType={'managedcontrolplanes'}
124126
/>
125127
<ConnectButton
126-
disabled={isConnectButtonEnabled}
128+
disabled={!isConnectButtonEnabled}
127129
controlPlaneName={name}
128130
projectName={projectName}
129131
workspaceName={workspace.metadata.name ?? ''}

0 commit comments

Comments
 (0)