This will show it when deadline is passed... Shouldn't it be

 {{#ifExpired deadline}}
    {% trans "Deadline passed" %}
 {{else}}
   <span class="project-days-left"><span class="flaticon solid clock-1"></span> <strong>{{daysToGo}}</strong> <em>{% trans "days" %}</em></span>
  {{/ifExpired}}