Skip to content

Commit 03a73a7

Browse files
committed
[Refacotr] Udpated message if courses no found in filtering
1 parent 6adce78 commit 03a73a7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

frontend/src/components/pages/CourseDashboard.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,11 @@ export function CourseDashboard() {
150150
<p>Loading courses...</p>
151151
) : filteredCourses.length > 0 ? (
152152
allCourses
153-
) : (
154-
<div className="course-box">
155-
<p>Nothing to show, yet</p>
156-
</div>
157-
)}
153+
) : <p>No Courses...</p>
154+
}
158155
</div>
159-
</div>)}
156+
</div>
157+
)}
160158
</div>
161159
);
162160
}

0 commit comments

Comments
 (0)