Skip to content

Commit

Permalink
Edit: Counter is removed when 0 are found
Browse files Browse the repository at this point in the history
  • Loading branch information
porkboi committed May 25, 2024
1 parent 4dae61e commit 4f2435a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/CourseList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ const CourseList = ({ courseIDs, children }: Props) => {

return (
<div className="py-6 px-2 md:px-6">
<div className="text-gray-400 mt-3 text-sm pb-2">{courseIDs.length} Saved Courses </div>
{results.length > 0 ? (
<div className="space-y-4">
{/* We found less courses than what we search for, so put a Loading indicator */}
{courseIDs.length > results.length && <Loading />}
<div className="text-gray-400 mt-3 text-sm pb-2">{courseIDs.length} Saved Courses </div>
{results.map((course) => (
<CourseCard
info={course}
Expand Down

0 comments on commit 4f2435a

Please sign in to comment.