From 608d5bb45a77bb2622edd725df4d21e11557ba47 Mon Sep 17 00:00:00 2001
From: Yared Yemane
Date: Tue, 5 May 2026 08:15:52 -0700
Subject: [PATCH] module card labeling fix
---
src/pages/content-management/UnitManagementPage.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pages/content-management/UnitManagementPage.tsx b/src/pages/content-management/UnitManagementPage.tsx
index 10c59c1..41717aa 100644
--- a/src/pages/content-management/UnitManagementPage.tsx
+++ b/src/pages/content-management/UnitManagementPage.tsx
@@ -72,7 +72,7 @@ export function UnitManagementPage() {
thumbnail: string;
icon: string;
sortOrder: number;
- videos: number;
+ lessons: number;
practices: number;
gradient: string;
}>
@@ -134,7 +134,7 @@ export function UnitManagementPage() {
thumbnail: row.thumbnail?.trim() || "",
icon: row.icon?.trim() || "",
sortOrder: Number(row.sort_order ?? 0),
- videos: Number(row.lessons_count ?? row.videos_count ?? 0),
+ lessons: Number(row.lessons_count ?? row.videos_count ?? 0),
practices: Number(row.practices_count ?? 0),
gradient:
index % 3 === 1
@@ -679,7 +679,7 @@ export function UnitManagementPage() {
No modules for this unit yet
- Create your first module to start organizing videos and practices.
+ Create your first module to start organizing lessons and practices.
) : (
@@ -759,7 +759,7 @@ export function UnitManagementPage() {
- {module.videos} Videos
+ {module.lessons} Lessons