Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix: Fetching price for expired courses (#1843)
Browse files Browse the repository at this point in the history
Fixes: LEARNER-9759
  • Loading branch information
HamzaIsrar12 authored Jan 24, 2024
1 parent 9564a17 commit a6b4bac
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import org.edx.mobile.event.MyCoursesRefreshEvent
import org.edx.mobile.event.RefreshCourseDashboardEvent
import org.edx.mobile.exception.ErrorMessage
import org.edx.mobile.extenstion.CollapsingToolbarStatListener
import org.edx.mobile.extenstion.isNotNullOrEmpty
import org.edx.mobile.extenstion.serializable
import org.edx.mobile.extenstion.serializableOrThrow
import org.edx.mobile.extenstion.setTitleStateListener
Expand Down Expand Up @@ -244,7 +245,8 @@ class CourseTabsDashboardFragment : BaseFragment() {
private fun setupIAPLayout() {
val isPurchaseEnabled = environment.featuresPrefs.isIAPEnabledForUser(
environment.loginPrefs.isOddUserId
)
) && courseData.courseSku.isNotNullOrEmpty()

binding.accessError.apply {
setVisibility(true)
setState(State.IS_UPGRADEABLE, null)
Expand Down

0 comments on commit a6b4bac

Please sign in to comment.