Skip to content

Commit

Permalink
fix twig deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Dec 19, 2024
1 parent a2f01a7 commit d6e4ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/components/progress_bar.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% set _value = item.current ?? 0 %}
{% set _max = item.max ?? 0 %}
{% set _min = item.min ?? 0 %}
{% set _indeterminate = item.indeterminate ?? _value == _max and _min == _max %}
{% set _indeterminate = item.indeterminate ?? (_value == _max and _min == _max) %}
{% set percent = _indeterminate or (_max - _min) == 0 ? 0 : ((_value - _min) * 100) / (_max - _min) %}

{% set _striped = item.striped ?? false %}
Expand Down

0 comments on commit d6e4ce7

Please sign in to comment.