Skip to content

Commit d6e4ce7

Browse files
committed
fix twig deprecation
1 parent a2f01a7 commit d6e4ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/components/progress_bar.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{% set _value = item.current ?? 0 %}
1313
{% set _max = item.max ?? 0 %}
1414
{% set _min = item.min ?? 0 %}
15-
{% set _indeterminate = item.indeterminate ?? _value == _max and _min == _max %}
15+
{% set _indeterminate = item.indeterminate ?? (_value == _max and _min == _max) %}
1616
{% set percent = _indeterminate or (_max - _min) == 0 ? 0 : ((_value - _min) * 100) / (_max - _min) %}
1717

1818
{% set _striped = item.striped ?? false %}

0 commit comments

Comments
 (0)