Browse Source

fix: always display thumbs, even with zero reactions

Zubarev Grigoriy 7 months ago
parent
commit
be77086b15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/rural_dict/templates/index.html

+ 1 - 1
src/rural_dict/templates/index.html

@@ -39,7 +39,7 @@
         <p><i>{{ example|safe }}</i></p>
       </div>
       <div>{{ contributor|safe }}</div>
-      {% if thumbs_up and thumbs_down %}
+      {% if thumbs_up is not none and thumbs_down is not none %}
       <p>
         <span title="thumbs up">👍{{ thumbs_up|safe }}</span>
         <span title="thumbs down">👎{{ thumbs_down|safe }}</span>