diff --git a/packages/ui/src/components/JobStatusChip/index.tsx b/packages/ui/src/components/JobStatusChip/index.tsx index 2efd944..7f5eabf 100644 --- a/packages/ui/src/components/JobStatusChip/index.tsx +++ b/packages/ui/src/components/JobStatusChip/index.tsx @@ -13,12 +13,16 @@ type TProps = { export default function JobStatusChip(props: TProps) { const backgroundColor = useJobStatusColor(props.status); + const style = { + color: '#fff', + backgroundColor, + }; + if (isUndefined(props.label) || props.label <= 0) { + style.opacity = 0.5; + } return (