diff --git a/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx b/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx index 38b476cf5..fc2e9f187 100644 --- a/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx +++ b/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx @@ -142,8 +142,10 @@ export class Tag extends React.Component { className={resolveClassNames( "items-center text-white rounded-full h-5 justify-center mr-2 pl-1.5 pr-1.5 min-w-[5] flex outline-none relative text-center text-xs leading-none", { - "bg-blue-700": matches <= this.props.maxNumSelectedNodes, - "bg-amber-600": matches > this.props.maxNumSelectedNodes, + "bg-blue-700": + matches <= this.props.maxNumSelectedNodes || this.props.maxNumSelectedNodes === -1, + "bg-amber-600": + matches > this.props.maxNumSelectedNodes && this.props.maxNumSelectedNodes !== -1, } )} title={title}