1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 06:00:06 +02:00

fix(ui-toolkit): proper use of HealthyIcon healthy prop

This commit is contained in:
Sérgio Ramos 2017-08-30 12:24:43 +01:00
parent 90975b30e3
commit d30988f652

View File

@ -60,7 +60,13 @@ const GraphNodeInfo = ({ data, pos }) => {
const healthy = (
<HealthyIcon
healthy={instancesHealthy.total === instancesHealthy.healthy}
healthy={
instancesHealthy.total === instancesHealthy.healthy ? (
'HEALTHY'
) : (
'UNHEALTHY'
)
}
/>
);