Ensure we're actually checking the value

This commit is contained in:
c0de 2023-12-29 15:01:54 -06:00
parent 5622dc6b28
commit ff8182d9c3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
{% set reaction_iterations = namespace(value=0) %}
{% for reaction, reaction_count in this.reactions|dictsort(by="value") %}
{# Don't render reaction if we've reached the max number, or its counter is 0 (or lower) #}
{% if reaction_iterations != gallery.max_reactions_per_card|int and reaction_count >= 1 %}
{% if reaction_iterations.value|int != gallery.max_reactions_per_card|int and reaction_count|int >= 1 %}
<button class="btn btn-link btn-sm disabled text-body position-relative">
{# TODO: Enable the button, and make clicking it toggle adding/removing that reaction to the counter, also color reaction button #}