Skip to content

Commit f2d74d1

Browse files
Merge pull request gitcoinco#5752 from gitcoinco/fix-hide-address
Fix hide address
2 parents 25174c3 + bf018a1 commit f2d74d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/grants/templates/grants/activity.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@
3131
{{subscription.num_tx_approved|floatformat}} time{{ subscription.num_tx_approved|pluralize }}
3232
</div>
3333
</div>
34+
{% if not subscription.contributor_profile.hide_wallet_address %}
3435
<div class="d-none d-md-block col-4 col-md-2 my-auto font-body">
3536
<a class="sub_tx_link" href="https://etherscan.io/tx/{{ subscription.new_approve_tx_id }}" target="_blank" rel="noopener noreferrer">
3637
{% if subscription.new_approve_tx_id %}
3738
View Etherscan
3839
{% endif %}
3940
</a>
4041
</div>
42+
{% endif %}
4143
<div class="offset-lg-1 col-4 col-md-2 my-auto tags font-caption">
4244
<div class="tag tag-lg token">
4345
<p>
@@ -78,7 +80,7 @@
7880
{% if not transaction.success %} (Failed) {% endif %}
7981
</div>
8082
</div>
81-
{% if not profile.hide_wallet_address or subscription.contributor_profile.has_done_business_with %}
83+
{% if not transaction.subscription.contributor_profile.hide_wallet_address %}
8284
<div class="d-none d-md-block col-md-2 font-body my-auto txn-link">
8385
<a class="tx_link" href="https://etherscan.io/tx/{{ transaction.tx_id }}" target="_blank" rel="noopener noreferrer">
8486
{% if transaction.tx_id %}
@@ -137,7 +139,7 @@
137139
{{subscription.num_tx_approved|floatformat}} time{{ subscription.num_tx_approved|pluralize }}
138140
</div>
139141
</div>
140-
{% if not profile.hide_wallet_address %}
142+
{% if not subscription.contributor_profile.hide_wallet_address %}
141143
<div class="d-none d-md-block col-md-2 my-auto font-body">
142144
{% if subscription.cancel_tx_id != '0x0' %}
143145
<a class="cancel_tx_link" href="https://etherscan.io/tx/{{ subscription.cancel_tx_id }}" target="_blank" rel="noopener noreferrer">

0 commit comments

Comments
 (0)