Skip to content

Commit

Permalink
fix #4144 nda condition
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu authored and owocki committed Apr 9, 2019
1 parent 15d360e commit 313330c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/v2/js/pages/bounty_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,7 @@ const process_activities = function(result, bounty_activities) {
const new_bounty = meta.new_bounty || {};
const old_bounty = meta.old_bounty || {};
const has_signed_nda = result.interested.length ?
result.interested.map(interest => {
result.interested.find(interest => {
if (interest.profile.handle === _activity.profile.handle && interest.signed_nda) {
return interest.signed_nda.doc;
}
Expand Down
4 changes: 2 additions & 2 deletions app/dashboard/templates/bounty/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ <h5 class="bounty-heading">{% trans "Funder" %}</h5>
<div class="col-12 col-md-7 started-status-column d-flex">
<div class="activity-status">
[[:text]]
[[if signed_nda && signed_nda != 'false']]
<a href="[[:signed_nda]]" download class="d-flex">View signed NDA</a>
[[if signed_nda]]
<a href="[[:signed_nda.signed_nda.doc]]" download class="d-flex">View signed NDA</a>
[[/if]]
</div>
[[if can_approve_worker ]]
Expand Down

0 comments on commit 313330c

Please sign in to comment.