fix: [AA-1018] api cleanup

Implement review feedback.
Clean up tests
This commit is contained in:
Chris Deery
2022-01-25 14:08:32 -05:00
parent f0f8027de4
commit 7f016e55aa
16 changed files with 71 additions and 74 deletions

View File

@@ -204,7 +204,9 @@ export function fetchCourse(courseId) {
if (!fetchedMetadata) {
logError(courseMetadataResult.reason);
}
if (!fetchedCourseHomeMetadata) {
logError(courseHomeMetadataResult.reason);
}
if (fetchedMetadata && fetchedCourseHomeMetadata) {
if (courseHomeMetadataResult.value.courseAccess.hasAccess && fetchedBlocks) {
// User has access