diff --git a/src/components/AssignmentCard.js b/src/components/AssignmentCard.js index 7ab4609..daad853 100644 --- a/src/components/AssignmentCard.js +++ b/src/components/AssignmentCard.js @@ -110,6 +110,7 @@ function AssignmentCard({ title, classrooms, dueDate, scores, layoutType }) { .filter((_, i) => i > 0) .map(c => (
{classrooms === null ? ( - Array(6) - .fill() - .map((_, index) => ( - - )) + createArrayFrom1ToN(6).map(i => ( + + )) ) : classrooms.length !== 0 ? ( classrooms.map(classroom => ( {assignments === null ? ( - Array(6) - .fill() - .map((_, index) => ( - - )) + createArrayFrom1ToN(6).map(i => ( + + )) ) : assignments.length !== 0 ? ( assignments.map(assignment => (