Skip to content

Commit

Permalink
fix: the 'young' tag was added multiple times
Browse files Browse the repository at this point in the history
For sanctioned transactions on the template and block page, the YOUNG
tag was beening added multiple times.
  • Loading branch information
0xB10C committed Nov 13, 2023
1 parent e0fdab8 commit c04f08e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions www/templates/macro/template_and_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@
<div class="list-group-item p-0 rounded">
<div class="row p-3">
<span class="col-12">
{% for tag_id in tx.transaction.tags %}
{% if tx.missing_info.mempool_age_seconds >= 0 and tx.missing_info.mempool_age_seconds < THRESHOLD_TRANSACTION_CONSIDERED_YOUNG %}
{{ transaction::tag(tag=tx_tag_id_to_tag(id=TAG_ID_YOUNG)) }}
{{ transaction::tag(tag=tx_tag_id_to_tag(id=TAG_ID_YOUNG)) }}
{% endif %}
{{ transaction::tag(tag=tx_tag_id_to_tag(id=tag_id)) }}
{% for tag_id in tx.transaction.tags %}
{{ transaction::tag(tag=tx_tag_id_to_tag(id=tag_id)) }}
{% endfor %}
</span>
<span class="col-12">
Expand Down

0 comments on commit c04f08e

Please sign in to comment.