Use cached data for course in enroll component
Fetch this data from the parent (i.e course page or instance page).
Currently the enroll component flashes with undefined data even when the data is known in the above component.
Fetch this data from the parent (i.e course page or instance page).
Currently the enroll component flashes with undefined data even when the data is known in the above component.