Skip to content

Commit

Permalink
hide claim button if grant is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Apr 22, 2021
1 parent 2a80875 commit 5253ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/grants/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ def grant_details(request, grant_id, grant_slug):
is_match_available_to_claim = True if amount_available > 0 else False

# Determine if we should show the claim match button on the grant details page
should_show_claim_match_button = (is_team_member or is_staff or is_admin) and is_match_available_to_claim and not is_blocked_by_kyc
should_show_claim_match_button = grant.is_active and (is_team_member or is_staff or is_admin) and is_match_available_to_claim and not is_blocked_by_kyc

except Exception as e:
logger.exception(e)
Expand Down

0 comments on commit 5253ef0

Please sign in to comment.