Skip to content

Commit

Permalink
feat: applying fixes to offer page
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjmpb committed Nov 1, 2023
1 parent be1a691 commit 90b9b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ecommerce/extensions/api/v2/views/vouchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,8 @@ def get_course_offer_data(
elif 'card_image_url' in course_info:
image = course_info['card_image_url']
else:
image = ''
# Get the course image from the LMS course API format.
image = course_info.get('media', {}).get('image', {}).get('raw', '')
return {
'benefit': serializers.BenefitSerializer(benefit).data,
'contains_verified': is_verified,
Expand Down
4 changes: 0 additions & 4 deletions ecommerce/static/templates/_offer_course_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ <h4 class="pagination-range pull-right hidden-xs">Showing <%= (courses.lowerLimi
<p><%= course.attributes.title %></p>
</div>

<p class="course-org"><%= course.attributes.organization %></p>

<p class="course-start"><%= course.attributes.course_start_date_text %></p>

<div class="discount-mc-price-group clearfix">
<div class="pull-left">
</div>
Expand Down

0 comments on commit 90b9b28

Please sign in to comment.