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
1 changed files with 7 additions and 1 deletions

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'
)
}
/>
);