fix: get progress from membership

This commit is contained in:
Jannat Patel
2021-10-20 12:05:13 +05:30
parent 4d534db63f
commit 66e8ac9cae
10 changed files with 58 additions and 29 deletions

View File

@@ -99,7 +99,7 @@
<img class="ml-2" src="/assets/community/icons/side-arrow-white.svg">
</a>
{% elif course.enable_certification %}
<div class="button is-primary {% if course.get_course_progress() != 100 %} hide {% endif %}" id="certification">
<div class="button is-primary {% if membership.progress != 100 %} hide {% endif %}" id="certification">
Get Certificate
</div>
{% endif %}