Correcting conditional to correctly build the component.