diff --git a/src/patterns/04-components/card/card-elements/_rate-of-pay.twig b/src/patterns/04-components/card/card-elements/_rate-of-pay.twig index e7ad547440e923f6e0e97391752b79b921fde3d3..e3423941dc2c10e6bae22760421c1c2ce743dc20 100644 --- a/src/patterns/04-components/card/card-elements/_rate-of-pay.twig +++ b/src/patterns/04-components/card/card-elements/_rate-of-pay.twig @@ -1,10 +1,12 @@ -{% include '@components/label/label.twig' with { - 'label': 'Rate of pay' -} %} -{% if rate_of_pay and rate_of_pay_type %} - {{ rate_of_pay }} ({{ rate_of_pay_type[0].title }}) -{% elseif rate_of_pay_type %} - {{ rate_of_pay_type }} -{% else %} - {{ rate_of_pay }} +{% if rate_of_pay %} + {% include '@components/label/label.twig' with { + 'label': 'Rate of pay' + } %} + {% if rate_of_pay and rate_of_pay_type %} + {{ rate_of_pay }} ({{ rate_of_pay_type[0].title }}) + {% elseif rate_of_pay_type %} + {{ rate_of_pay_type }} + {% else %} + {{ rate_of_pay }} + {% endif %} {% endif %}